10-18-2011, 02:58 AM | #1 | ||
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
Porting CWM to the Edge
Okay folks. I'm doing my best to follow the tutorial Koush has put up on his blog here.
Here is what I have done so far: 1. Got cyanogenmod up and compiling on OSX. (Not trivial!) 2. Dumped images from /dev/ubi0_0 - /dev/ubi0_2. I don't have the space to dump /dev/ubi0_3. Not sure why, it appears to be only 250MB in size. Regardless, this looks like mostly user data. Probably not necessary. I am stuck at this step: Quote:
Quote:
So that's the first problem. The second problem is that the partitions are ubifs instead of jffs, which means that the instructions from koush's blog may not work. I am not able to mount the ubi images that I downloaded on OSX since OSX doesn't know anything about ubi, and I can't find anything on the interwebz to help me out there. Other relevant posts on porting CWM can be found on MobileRead here. How are the rest of you coming? Last edited by nikkie; 10-18-2011 at 03:12 AM. |
||
10-18-2011, 08:31 AM | #2 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
ktwombley and you are probably the most knowledgeable people here.
he is up to something as well. please get together Sorry I can not help with a lot. I can offer ftp space. if interested pm and I will email you the setttings. |
Advert | |
|
10-18-2011, 08:52 AM | #3 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
Extract and rebuild a UBI image Customize Rom
http://www.chinadigitalcomm.com/post21948.html http://www.androidtablets.net/forum/...tablets-4.html http://osl.sed.hu/wiki/ubifs/index.p...oad_the_source http://www.linux-mtd.infradead.org/faq/ubifs.html this may help? |
10-18-2011, 08:56 AM | #4 |
Guru
Posts: 858
Karma: 1027478
Join Date: Aug 2010
Location: South of France
Device: kindle dx; eDGe
|
nikkie, just a thought, would it make things easier if you set up a special environment for porting in a VM?
|
10-18-2011, 08:59 AM | #5 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
most of the people talk about using a ubuntu VM
|
Advert | |
|
10-18-2011, 01:54 PM | #6 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Sep 2011
Device: Edgejr
|
im failing miserably
|
10-18-2011, 02:06 PM | #7 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Sep 2011
Device: Edgejr
|
Found this
"apparently the otatools target doesn't make unpackbootimg. i managed to get it to work by doing `make -j4 out/host/linux-x86/bin/unpackbootimg`." so have you tried make -j4 out/host/linux-x86/bin/unpackbootimg.... Last edited by JRANGER; 10-18-2011 at 02:16 PM. |
10-18-2011, 05:28 PM | #8 |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
I'm against the idea of using a VM on general principle - it's just never really worked out for me in the past. I have a linux install, it's just on the other side of my windows install behind a b0rked bootloader that I need to fix. I'll be doing that soon. I'll try out JRANGER's fix tonight for unpackbootimg.
|
10-18-2011, 05:54 PM | #9 | |
Guru
Posts: 858
Karma: 1027478
Join Date: Aug 2010
Location: South of France
Device: kindle dx; eDGe
|
Quote:
That being said and the fact that VirtualBox for OS/2 is old it still allows me to run an Android emulator in win XP on my OS/2 workstation. |
|
10-18-2011, 08:00 PM | #10 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Sep 2011
Device: Edgejr
|
I love VM....Im running 60 VM boxes at work in a VMWARE environment...but I have 4 monster servers as a back bone with 230GB of memory and 32 processors....SO yeah & TB of storage and it works wonderfully but its all about what works best for you
|
10-18-2011, 10:19 PM | #11 | ||
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
JRANGER's post's fix does indeed work to get unpackbootimg compiled. That really ought to have been in the instructions. Later, this fix is required for compiling the recoveryimage on OSX.
I'm now down at Quote:
Quote:
|
||
10-18-2011, 11:09 PM | #12 | |
Connoisseur
Posts: 61
Karma: 10
Join Date: Sep 2011
Device: Edgejr
|
Quote:
|
|
10-18-2011, 11:17 PM | #13 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Sep 2011
Device: Edgejr
|
The two files you are interested in are recovery.fstab and kernel. The kernel in that directory is the stock one that was extracted from the boot.img that was provided earlier. For the most part, recovery.fstab will work on most devices that have mtd, emmc, or otherwise named partitions. But if not, recovery.fstab will need to be tweaked to support mounts and their mount points. For example, if your /sdcard mount is /dev/block/mmcblk1p1, you would need the following lines in your BoardConfig.mk:
/sdcard vfat /dev/block/mmcblk1p1 Have you double check the sdcard mounting as described above? Last edited by JRANGER; 10-18-2011 at 11:20 PM. |
10-18-2011, 11:42 PM | #14 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Sep 2011
Device: Edgejr
|
also did you do this?
Tip: Run "make clobber" between builds if you change the BoardConfig.mk, or the change will not get picked up. |
10-19-2011, 01:14 PM | #15 |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
Yeah, I've done all those things. I matched recovery.fstab to vold.fstab.internal. I can't find anything saying whether that's right or not, but I'd guess so.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Thoroughly bricked? Won't boot SD or CWM | Waba | Nook Developer's Corner | 6 | 05-18-2011 12:23 PM |
Install CWM without rooting / Mount bootable SD partition over USB [SOLVED] | taosaur | Nook Developer's Corner | 10 | 05-17-2011 03:02 PM |
Clockwork Mod - CWM | goldberry | Nook Developer's Corner | 0 | 05-10-2011 12:20 AM |
Help porting for beginners | Gogolo | iRex | 2 | 09-03-2009 09:33 AM |
iLiad Books about porting? | Luka Trifunovic | iRex Developer's Corner | 0 | 03-20-2008 12:22 AM |