Re: ARM kernel cross compilation issues for iMX53
On Mon, Mar 26, 2012 at 10:48:16PM -0400, Lennart Sorensen wrote:
> I am still trying to get the debian kernel build to do something.
>
> This isn't doing much yet:
>
> MX53LOCO U-Boot > setenv bootargs root=/dev/sda1 rw rootwait console=ttymxc0,${baudrate}
> MX53LOCO U-Boot > sata init
> AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
> flags: ncq stag pm led clo only pmp pio slum part
> SATA Device Info:
> S/N: 5SV6CHMY
> Product model number: ST9160310AS
> Firmware version: 0303
> Capacity: 312581808 sectors
> MX53LOCO U-Boot > ext2load sata 0:1 ${loadaddr} /boot/uImage-3.2.0-2-mx5
> Loading file "/boot/uImage-3.2.0-2-mx5" from sata device 0:1 (hda1)
> 1979872 bytes read
> MX53LOCO U-Boot > ext2load sata 0:1 0x71000000 /boot/uInitrd-3.2.0-2-mx5
> Loading file "/boot/uInitrd-3.2.0-2-mx5" from sata device 0:1 (hda1)
> 4312970 bytes read
> MX53LOCO U-Boot > bootm ${loadaddr} 0x71000000
> ## Booting kernel from Legacy Image at 70800000 ...
> Image Name: uImage
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 1979808 Bytes = 1.9 MiB
> Load Address: 70800000
> Entry Point: 70800000
> Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at 71000000 ...
> Image Name: uImage
> Image Type: ARM Linux RAMDisk Image (uncompressed)
> Data Size: 4312906 Bytes = 4.1 MiB
> Load Address: 71000000
> Entry Point: 71000000
> Verifying Checksum ... OK
> XIP Kernel Image ... OK
> OK
>
> Starting kernel ...
>
> And that's it.
>
> I am using u-boot checked out from git a few minutes
> ago, plus a set of 9 patches to enable sata support from
> http://lists.denx.de/pipermail/u-boot/2012-February/118523.html
>
> I guess I might have used mkimage incorrectly. I will have to try
> flash-kernel.
On the other hand using the ubuntu 2.6.35 kernel like this works fine:
MX53LOCO U-Boot > setenv bootargs root=/dev/sda1 rw rootwait video=mxcdi0fb:RGB24,1080P60
MX53LOCO U-Boot > set bootargs ${bootargs} root=/dev/sda1 rw rootwait
MX53LOCO U-Boot > sata init
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
SATA Device Info:
S/N: 5SV6CHMY
Product model number: ST9160310AS
Firmware version: 0303
Capacity: 312581808 sectors
MX53LOCO U-Boot > mmc read 0 ${loadaddr} 0x800 0x1800
MMC read: dev # 0, block # 1887436800, count 2048 ... MMC: block number 0x70800800 exceeds max(0x75c000)
0 blocks read: ERROR
MX53LOCO U-Boot > mmc read ${loadaddr} 0x800 0x1800;
MMC read: dev # 0, block # 2048, count 6144 ... 6144 blocks read: OK
MX53LOCO U-Boot > bootm
## Booting kernel from Legacy Image at 70800000 ...
Image Name: Linux-2.6.35.3-744-g27fdf7b
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2967420 Bytes = 2.8 MiB
Load Address: 70008000
Entry Point: 70008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Linux version 2.6.35.3-744-g27fdf7b (r80115@bluebell) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #1 PREEMPT Thu Jan 27 15:10:16 CST 2011
CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[snip]
I wonder if the fact the load address of the uImage is slightly different
could be a problem. Hmm. I seem to have used 70800000 rather than
70008000.
--
Len Sorensen
Reply to: