Hello,
I'm porting Android to imx51 target and I'm facing issues while
writing android file system to nand.
I've created a jffs2 file in which I've put the android file system:
mkdir ram
cp -Rfp android_freescale/out/target/product/imx51_BBG/root/* ram
cp -Rfp /android_freescale/out/target/product/imx51_BBG/system/ ram
cp -Rfp android_freescale/out/target/product/imx51_BBG/data/ ram
mkfs.jffs2 -n -r ram -e 128 -o rootfs.jffs2
cp rootfs.jffs2 /var/lib/tftboot
The u-boot configuration is:
MX51 U-Boot > mtdparts
device nand0 <nand0>, # parts = 4
#: name size offset
mask_flags
0: BOOT 0x00700000 0x00000000 0
1: MISC 0x00800000 0x00700000 0
2: RECOVERY 0x01c00000 0x00800000 0
3: ROOT 0x1e400000 0x01c00000 0
active partition: nand0,0 - (BOOT) 0x00700000 @ 0x00000000
defaults:
mtdids : <NULL>
mtdparts: <NULL>
MX51 U-Boot > nand info
Device 0: NAND 512MiB 1,8V 8-bit, sector size 128 KiB
MX51 U-Boot > nand erase BOOT
NAND erase: device 0 offset 0x0, size 0x700000
Skipping bad block at
0x00460000
Erasing at 0x6e0000 -- 100% complete.
OK
MX51 U-Boot > nand write 0x90b00000 0x0 3e800
NAND write: device 0 offset 0x0, size 0x3e800
256000 bytes written: OK
MX51 U-Boot > setenv bootfile uImage
MX51 U-Boot > dhcp
PHY indentify @ 0xf = 0x0007c0c4
BOOTP broadcast 1
DHCP client bound to address 192.168.1.25
Using FEC0 device
TFTP from server 192.168.1.24; our IP address is 192.168.1.25
Filename 'uImage'.
Load address: 0x90b00000
Loading:
#################################################################
#################################################################
####################
done
Bytes transferred = 2196328 (218368 hex)
MX51 U-Boot > nand erase MISC
NAND erase: device 0 offset 0x700000, size 0x800000
Skipping bad block at
0x00ae0000
Erasing at 0xee0000 -- 100% complete.
OK
MX51 U-Boot > nand write 0x90b00000 700000 232800
NAND write: device 0 offset 0x700000, size 0x232800
2304000 bytes written: OK
MX51 U-Boot > setenv bootfile rootfs.jffs2
MX51 U-Boot > dhcp
PHY indentify @ 0xf = 0x0007c0c4
BOOTP broadcast 1
DHCP client bound to address 192.168.1.25
Using FEC0 device
TFTP from server 192.168.1.24; our IP address is 192.168.1.25
Filename 'rootfs.jffs2'.
Load address: 0x90b00000
Loading:
#################################################################
#################################################################
#################################################################
done
Bytes transferred = 44314284 (2a42eac hex)
MX51 U-Boot > nand erase ROOT
NAND erase: device 0 offset 0x1c00000, size 0x1e400000
Skipping bad block at
0x02fa0000
Skipping bad block at
0x04740000
Skipping bad block at
0x05ce0000
Skipping bad block at
0x05ee0000
Skipping bad block at
0x07a40000
Skipping bad block at
0x0a0a0000
Skipping bad block at
0x0a3e0000
Skipping bad block at
0x107c0000
Skipping bad block at
0x11400000
Skipping bad block at
0x14ec0000
Skipping bad block at
0x187c0000
Skipping bad block at
0x18ec0000
Skipping bad block at
0x1b020000
Skipping bad block at
0x1bd20000
Skipping bad block at
0x1fd20000
Skipping bad block at
0x1ff80000
Skipping bad block at
0x1ffa0000
Skipping bad block at
0x1ffc0000
Skipping bad block at
0x1ffe0000
OK
MX51 U-Boot > nand write.jffs2 0x90b00000 1c00000 2a5bc00
NAND write: device 0 offset 0x1c00000, size 0x2a5bc00
Attempt to write non page aligned data
44416000 bytes written: ERROR
I'm able to write u-boot and uImage to nand but I have a problem with
android file system.
Does anyone see where the problem is?
I need help please!
Thanks
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting