Android Tablets Forum banner

Rough Guide on Setting Up Your Own Kitchen

30K views 60 replies 7 participants last post by  900Supersport  
I'm beginning to work though this, is there any interest in me posting stage by step by step progress? Can't promise not to take few wrong steps though.

Brian
 
OK here's what I've done so far.

Step 1 Windows

Dropped the downloaded and extracted, image and rk image tools into a folder (I've used a pen drive for this so fat32).

Rename the image file wendal.img

Double click Runme.bat to unpack the rom image, this takes a while. It will create a Temp folder containing a number of small files and folder Image. This one is of interest as it contains the 5 .img files

· boot.img

· kernel.img

· misc.img

· recovery.img

· system.img

Step 2 Linux

Initially I am interested in looking at boot.img and system.img.

boot.img, use the following to remove the first 8 bytes of boot.img putting the remainder of the file into bootimg.gz. I then create a folder myboot an extract the gz file into it.

dd if=boot.img of=bootimg.gz skip=8 bs=1 count=20000000
mkdir myboot
cd myboot/
sudo gunzip < ../bootimg.gz | sudo cpio -i --make-directories

I now have a folder myboot containing the extracted file system.

system.img, use the following (from memory but will check) to create a directory to use as a mount point and then mount system.img as a file system connected as mntsystem

mkdir mntsystem

sudo mount -t ext4 -o loop system.img mntsystem

myboot and mntsystem can now be explored
 
Some of you may be interested in a thread over at freaktab. Been doing some testing of another ROM for the cube. Should start producing some results soon.
 
Hi 900Supersport,

That looks very interesting. Some good work there by Finless, Rubensa and yourself. Maybe a ROM with CWM in soon?
Do you know if anyone's working on Cube Mini (7 inch U30GT) ROMs? I am also hoping to use the method above to create a rooted ROM for the Cube Mini
Image


Thanks
Jez
As I have it I should have cwm, the cwm menu comes up on first boot. Not yet looked into testing the options.

Don't know if anyone looking at the cube mini, should be fairly straight forwards using standard rock chip procedures. To green myself to take this on especially without a cube mini.:)
 
OK I've rooted the latest firmware using Linux. First use wendal's tool to unpack the rom and get the system.IMG from Linux

Create a working folder
Within it create folders
Root
Scripts
Workspace
removed within Workspace
mntsystem also within Workspace

Add the following to Root (I got these from another rooted image)
su
su#
Superuser.apk

Within Scripts create the following see below for content
CleanRoot.sh
mountSystem.sh

Copy into Workspace the system.img to be rooted

Open a terminal and cd to Workspace
enter sh ../CleanRoot.sh and confirm your password as sudo is used

That's it system is now rooted, either re-pack using wendal's tools or flash just system.img if you can.

If you want to explore system.img either before or after rooting then enter sh ../mountSystem.sh confirming password as required

Here's those shell scripts

#############################################
#CleanRoot.sh
#mount system.img for editing
sudo mount -t ext4 -o loop system.img mntsystem/

#free up some space
sudo mv mntsystem/app/buyu.apk removed
sudo mv mntsystem/app/cube.0.3.0_v2963.apk removed
sudo mv mntsystem/app/Music.apk removed
sudo mv mntsystem/app/Calculator.apk removed
#sudo mv mntsystem/app/RkExplorer.apk removed

#uncomment a line to remove
#sudo mv mntsystem/app/pplicationsProvider.apk removed
#sudo mv mntsystem/app/asus.apk removed
#sudo mv mntsystem/app/BackupRestoreConfirmation.apk removed
#sudo mv mntsystem/app/Bluetooth.apk removed
#sudo mv mntsystem/app/Browser.apk removed
#sudo mv mntsystem/app/buyu.apk removed
#sudo mv mntsystem/app/Calculator.apk removed
#sudo mv mntsystem/app/CalendarProvider.apk removed
#sudo mv mntsystem/app/CalendarProviderGoogle.apk removed
#sudo mv mntsystem/app/CCCCACDE.apk removed
#sudo mv mntsystem/app/CertInstaller.apk removed
#sudo mv mntsystem/app/Chrome.apk removed
#sudo mv mntsystem/app/ChromeBookmarksSyncAdapter.apk removed
#sudo mv mntsystem/app/com.chaozh.iReaderFree_145459.apk removed
#sudo mv mntsystem/app/com.google.android.marvin.talkback.apk removed
#sudo mv mntsystem/app/Contacts.apk removed
#sudo mv mntsystem/app/ContactsProvider.apk removed
#sudo mv mntsystem/app/cube.0.3.0_v2963.apk removed
#sudo mv mntsystem/app/DefaultContainerService.apk removed
#sudo mv mntsystem/app/DeskClock.apk removed
#sudo mv mntsystem/app/DownloadProvider.apk removed
#sudo mv mntsystem/app/DownloadProviderUi.apk removed
#sudo mv mntsystem/app/DrmProvider.apk removed
#sudo mv mntsystem/app/Email.apk removed
#sudo mv mntsystem/app/es.apk removed
#sudo mv mntsystem/app/Exchange2.apk removed
#sudo mv mntsystem/app/FaceLock.apk removed
#sudo mv mntsystem/app/flashplayer removed
#sudo mv mntsystem/app/Galaxy4.apk removed
#sudo mv mntsystem/app/Gallery2.apk removed
#sudo mv mntsystem/app/Gmail.apk removed
#sudo mv mntsystem/app/GmsCore.apk removed
#sudo mv mntsystem/app/GoogleBackupTransport.apk removed
#sudo mv mntsystem/app/GoogleCalendarSyncAdapter.apk removed
#sudo mv mntsystem/app/GoogleContactsSyncAdapter.apk removed
#sudo mv mntsystem/app/GoogleEars.apk removed
#sudo mv mntsystem/app/GoogleFeedback.apk removed
#sudo mv mntsystem/app/GoogleLoginService.apk removed
#sudo mv mntsystem/app/GooglePartnerSetup.apk removed
#sudo mv mntsystem/app/GoogleServicesFramework.apk removed
#sudo mv mntsystem/app/GoogleTTS.apk removed
#sudo mv mntsystem/app/hd.apk removed
#sudo mv mntsystem/app/HoloSpiralWallpaper.apk removed
#sudo mv mntsystem/app/HTMLViewer.apk removed
#sudo mv mntsystem/app/InputDevices.apk removed
#sudo mv mntsystem/app/KeyChain.apk removed
#sudo mv mntsystem/app/LatinIME.apk removed
#sudo mv mntsystem/app/Launcher2.apk removed
#sudo mv mntsystem/app/LiveWallpapers.apk removed
#sudo mv mntsystem/app/LiveWallpapersPicker.apk removed
#sudo mv mntsystem/app/MagicSmokeWallpapers.apk removed
#sudo mv mntsystem/app/MediaFloat.apk removed
#sudo mv mntsystem/app/MediaProvider.apk removed
#sudo mv mntsystem/app/MediaUploader.apk removed
#sudo mv mntsystem/app/Music.apk removed
#sudo mv mntsystem/app/MusicFX.apk removed
#sudo mv mntsystem/app/NetworkLocation.apk removed
#sudo mv mntsystem/app/NoiseField.apk removed
#sudo mv mntsystem/app/OneTimeInitializer.apk removed
#sudo mv mntsystem/app/PackageInstaller.apk removed
#sudo mv mntsystem/app/PhaseBeam.apk removed
#sudo mv mntsystem/app/Phone.apk removed
#sudo mv mntsystem/app/Phonesky.apk removed
#sudo mv mntsystem/app/PicoTts.apk removed
#sudo mv mntsystem/app/PinyinIME.apk removed
#sudo mv mntsystem/app/Provision.apk removed
#sudo mv mntsystem/app/qq_hd_1.7.0.apk removed
#sudo mv mntsystem/app/RkApkinstaller.apk removed
#sudo mv mntsystem/app/RkExplorer.apk removed
#sudo mv mntsystem/app/RKUpdateService.apk removed
#sudo mv mntsystem/app/RkVideoPlayer.apk removed
#sudo mv mntsystem/app/Settings.apk removed
#sudo mv mntsystem/app/SettingsProvider.apk removed
#sudo mv mntsystem/app/SharedStorageBackup.apk removed
#sudo mv mntsystem/app/SoundRecorder.apk removed
#sudo mv mntsystem/app/SystemUI.apk removed
#sudo mv mntsystem/app/TelephonyProvider.apk removed
#sudo mv mntsystem/app/uc.apk removed
#sudo mv mntsystem/app/UserDictionaryProvider.apk removed
#sudo mv mntsystem/app/Velvet.apk removed
#sudo mv mntsystem/app/VideoEditor.apk removed
#sudo mv mntsystem/app/VisualizationWallpapers.apk removed
#sudo mv mntsystem/app/VoiceSearchStub.apk removed
#sudo mv mntsystem/app/VpnDialogs.apk removed
#sudo mv mntsystem/app/WAPPushManager.apk removed

#now copy files for rooting
sudo cp ../Root/Superuser.apk mntsystem/app/
sudo cp ../Root/su mntsystem/xbin/
sudo cp ../Root/su# mntsystem/xbin/

#we are done so unmount
sudo umount mntsystem

#############################################

#############################################
#mountSystem.sh
#mount system.img s the folde mntsystem
sudo mount -t ext4 -o loop system.img mntsystem/
#open file explorer as root
sudo nautilus
#now unmount
sudo umount mntsystem
#############################################
 
The wendal tools in the first post are Windows. I unpack in Windows then use Linux to root, explore and modify. Then back to windows for flash
 
Yes Thar's right. Wendal's tool assumes that system is cramfs' it's not it's ext4. So over to Linux and use my scripts to mount, clean and root system.img You will need copies of su, su# and Superuser.apk
 
Just been exploring that myself. Look in the root of mntsystem you should see build.prop open this in a text editor. You should be able to identify some obvious settings for Editting. Once I've finalised my changes I'll post them, should be tomorrow.
 
May be it's not needed. Will check this evening and upload if you need it.
 
Sounds promising, get it flashed and see if tb works
 
System.IMG should be the same size. It's possible that the re-packed ROM will be a different file. I use a different tool for flashing and flash the individual IMG files. So long as you have a good ROM image there should be nothing to loose from flashing your image.
 
Hope you have not bricked it. The flashing issues I have had have been USB cables. I now always use the Cale supplied with the cube as this has proven 100% reliable.

Only other issues I have had have been if i've flashed a bad image, easily corrected by flashing a known good image.
 
Good news re progress, definitely worth checking permissions.
 
You need to sign with rkcrc, cannot remember which switch k or p
 
Are you using a stand alone kernel or are you embedding the kernel in boot.img?
 
I'm away from my PC at present. will try and remember to post this evening.

There's some good stuff on freaktab on this subject.
 
I'm away from my PC at present. will try and remember to post this evening.

There's some good stuff on freaktab on this subject.
for boot.img to work the datetimes need setting on all files, then we need to make the gz image. I run the following from within folder containing the unpacked files and folders.

Code:
find . -exec touch -d "1970-01-01 01:00" {} \;'<br />
find . ! -name "." | sort | cpio -oa -H newc |  gzip -n >../customboot.gz')
 
Are you using the steps in post 40?
 
Step 1 would be to use the Wendel tools to unpack and repack and them flash. Do not extract boot.img when you do this.

This will tell you if your toolset is good.

If this does not work then take one of my ROMs and flash. Check it boots and then flash just your boot.img using my flashtool.

Good luck.
 
Good to hear you are sorted. Replied over on freaktab to.