[Barnes & Noble Nook Tablet] AdamOutler:
Hey.. I'm having a problem with this. It's saying the compression is wrong..

Here's the script I'm using...

#Uncompress via linux
dd bs=1 if=boot.img count=2691360 of=zImage
dd bs=1 if=boot.img skip=2691360 of=ramdisk.img
#Unpack via linux
mkdir temp
pushd temp
gunzip -c ../ramdisk.img | cpio -i

i've tried quite a few things at this point. I've added a ton of echo statements into the init.rc to see where we were at when it fails... I don't think it's getting to the init.rc scripts though.

Then I compress with this:

#Repack via linux
find . | cpio -o -H newc | gzip > ../newramdisk.img
cat ../zImage ../newramdisk.img >../new.flashing_boot.img

Then I boot from SDCard with the "MLO" and "u-boot" files in place and it halts at the U-Boot prompt because I have named flashing_boot.img to new.flashing_boot.img and it can't find it. So, I run the following:

#RUN KERNEL with hkvc's script via UART-- MUST BE RUN SEPARATELY NOT AS A BLOCK
mmcinit 0; fatload mmc 0:1 0x81000000 new.flashing_boot.img;
md.l 80e84794 1; md.l 80e847fc 1; mw.l 80e84794 e1a00000; mw.l 80e847fc e1a00000; md.l 80e84794 1; md.l 80e847fc 1;
md.l 80e84808 1; md.l 80e847a0 1; mw.l 80e84808 e1a00000; mw.l 80e847a0 e1a00000; md.l 80e84808 1; md.l 80e847a0 1;
booti 0x81000000

And I receive the following errors a few pages into the boot log...

omap_vout omap_vout: : registered and initialized video device 0
omap_vout omap_vout: : registered and initialized video device 1
omap_vout omap_vout: : registered and initialized video device 2
omap_wb: registered and initialized wb device 4 [v4l2]
RAMDISK: gzip image found at block 0
RAMDISK: EOF while reading compressed data
uncompression error
EXT3-fs (mmcblk1p2): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (mmcblk1p2): error: couldn't mount because of unsupported optional features (240)
EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:18.
devtmpfs: error mounting -2
Freeing init memory: 212K
Failed to execute /init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU1: stopping
Backtrace:
[<c0042410>] (dump_backtrace+0x0/0x110) from [<c03fd260>] (dump_stack+0x18/0x1c)
r6:00000001 r5:00000010 r4:c0e47040 r3:00000000
[<c03fd248>] (dump_stack+0x0/0x1c) from [<c003d2d4>] (do_IPI+0xe0/0x158)
[<c003d1f4>] (do_IPI+0x0/0x158) from [<c003dcc8>] (__irq_svc+0x48/0xe0)
Exception stack(0xefc57ef8 to 0xefc57f40)
7ee0: 00456232 00000000
7f00: 00456232 00000000 c0589094 c0e470d0 c0e470c0 c0588ca8 00000000 411fc093
7f20: 00000000 efc57f7c 00000000 efc57f40 c0052b98 c0052ba4 60000053 ffffffff
r8:00000001 r7:00000002 r6:00000001 r5:fa240100 r4:ffffffff
r3:60000053
[<c0052a14>] (omap4_enter_idle+0x0/0x1c0) from [<c0052c28>] (omap4_enter_idle_bm+0x54/0x58)
r6:c05a7a34 r5:c0e470d0 r4:c0e470c0
[<c0052bd4>] (omap4_enter_idle_bm+0x0/0x58) from [<c02ab384>] (cpuidle_idle_call+0xb4/0x118)
r5:c0e47130 r4:c0e470c0
[<c02ab2d0>] (cpuidle_idle_call+0x0/0x118) from [<c003f8e8>] (cpu_idle+0x84/0xe0)
r9:411fc093 r8:00000000 r6:efc56000 r5:00000001 r4:efc56000
r3:c02ab2d0
[<c003f864>] (cpu_idle+0x0/0xe0) from [<c03fafb0>] (secondary_start_kernel+0xfc/0x10c)
r4:00000001 r3:00000002
[<c03faeb4>] (secondary_start_kernel+0x0/0x10c) from [<80008080>] (0x80008080)
r6:10c03c7d r5:00000015 r4:afc5806a r3:c0008068
Rebooting in 1 seconds..

Texas Instruments X-Loader 1.41 (Oct 21 2011 - 14:00:05)
Start not on PWRON, skipping power button check.

Please note, it is not able to run the /init/ script. I believe there is something wrong with the encoding. I would like to attempt to rewrite the init.rc where I think things are failing, but I can't do that until it can get the init operational.

So far I've been able to figure out that the boot order is:

Partition1: Fat32, BOOT flag, LBA flag containing the following files: MLO, u-boot.bin, and flashing_boot.bin

Partition2: EXT2, EXT3, EXT4 are all acceptable. No idea what is on this partition or what size it should be.

Is there some sort of troubleshooting or a file I can add some statements into the ramdisk?