Still no success...
PurpleAlien wrote:
How did you generate your kernel and initrd?
For the uImage mkimage, I use the following commad :
Code:
sudo mkimage -A arm -O linux -a 0x90008000 -e 0x90008000 -T kernel -C none -n "EfikaMX kernel" -d distro/p2/boot/vmlinuz-* distro/p2/boot/uImage
Image Name: EfikaMX kernel
Created: Sun Nov 27 11:15:17 2011
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2016820 Bytes = 1969.55 kB = 1.92 MB
Load Address: 0x90008000
Entry Point: 0x90008000
For the initrd mkimage, I use the following command :
Code:
sudo mkimage -A arm -O linux -a 0x0 -e 0x0 -T ramdisk -C none -n "EfikaMX ramdisk" -d distro/p2/boot/initrd.img-* distro/p2/boot/uInitrd
Image Name: EfikaMX ramdisk
Created: Sun Nov 27 11:15:17 2011
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2579713 Bytes = 2519.25 kB = 2.46 MB
Load Address: 0x00000000
Entry Point: 0x00000000
For the initrd loading, I use the following boot.script :
Code:
# This boot script loads the kernel and an initial ramdisk
# into memory, then runs them. The initramfs simply switches
# to the root file system on the SD card.
# --------------------------------------------------------
# Setup environment
setenv scriptid ***** Boot using initramfs *****
setenv kernel uImage
setenv ramdisk uInitrd
setenv bootargs initrd=${ramdiskaddr},32M ramdisk_size=32768 console=ttymxc0,115200n8 root=/dev/mmcblkp0p2 rootwait rw video=imx-ipuv3-fb:1024x600M-16@60 lpj=3997696 rootfstype=ext4 earlyprintk=serial;
# --------------------------------------------------------
# Start the boot process
echo ${scriptid}
${loadcmd} ${ramdiskaddr} ${ramdisk};
if imi ${ramdiskaddr}; then; else
setenv bootargs ${bootargs} noinitrd;
setenv ramdiskaddr "";
fi;
${loadcmd} ${kerneladdr} ${kernel}
if imi ${kerneladdr}; then
bootm ${kerneladdr} ${ramdiskaddr}
fi;
And rootfs incorrectly detected :
Code:
[ 2.398936] mmc0: new high speed SD card at address b368
[ 2.404617] ata1.00: configured for UDMA/44
[ 2.409204] scsi 0:0:0:0: Direct-Access ATA SanDisk pSSD-P2 SSD P5
[ 2.418963] mmcblk0: mmc0:b368 SD 1.91 GiB
[ 2.423607] mmcblk0:
[ 2.425909] sd 0:0:0:0: [sda] 15649200 512-byte logical blocks: (8.01 GB/7.4)
[ 2.433828] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 2.439538] p1 p2
[ 2.442229] sd 0:0:0:0: [sda] Write Protect is off
[ 2.447300] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doeA
[ 2.457157] sda: sda1 sda2
[ 2.464677] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2.469874] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)
[ 2.477014] Please append a correct "root=" boot option; here are the availa:
[ 2.485385] b300 2009600 mmcblk0 driver: mmcblk
[ 2.490654] b301 72261 mmcblk0p1
[ 2.494940] b302 1935832 mmcblk0p2
[ 2.499241] 0800 7824600 sda driver: sd
[ 2.503789] 0801 121094 sda1
[ 2.507650] 0802 7699599 sda2
[ 2.511502] Kernel panic - not syncing: VFS: Unable to mount root fs on unkn)
armel build from sdcard give still no success.
uImage load correctly from uboot :
Code:
Starting kernel ...
Uncompressing Linux.............................................................
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Linux version 2.6.31.14.27dreagle-efikamx (root@astree) (gcc ver1
[ 0.000000] CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction ce
[ 0.000000] Machine: Genesi Efika MX (Smarttop)
But I still get initramfs error :
Code:
[ 1.204099] Unpacking initramfs...
[ 1.207541] Initramfs unpacking failed: junk in compressed archive
[ 1.219166] Freeing initrd memory: 32768K
[:-]