8kernel boot from spi, Flash, Ktam3874/pitx software guide – Kontron KTAM3874-pITX User Manual
Page 34

KTD-S0057-I Page
30
Kernel
Boot from SPITM Flash
KTAM3874/pITX Software Guide
8
Kernel Boot from SPI
TM
Flash
In some cases it is necessary to program the Linux
®
kernel into the SPI
TM
flash. U-Boot cannot boot the
kernel from the S-ATA
®
or USB interface (for S-ATA
®
example see next chapter). The most obvious option
insists in the use of the U-Boot flash command 'sf'.
# sf probe 0:0
4096 KiB SST25VF032B at 0:0 is now current device
# mw.b 81000000 ff 320000
# loadb 81000000
Ready for binary (kermit) download to 0x81000000 at 115200 bps...
Total Size = ... = ... Bytes
Start Addr = 0x81000000
# sf write 81000000 e2000 31e000
The following picture shows the SPI
TM
flash structure:
Note: The SPI
TM
flash boot requires an additional modification in the U-Boot environment.
loadaddr = 0x81000000
Another option represents the programming of the SPI
TM
flash within the Linux
®
operating system (e.g.
boot from microSD
TM
card). First check the partition layout with
# cat /proc/partitions
major minor #blocks name
31 0 128 mtdblock0
31 1 256 mtdblock1
31 2 8 mtdblock2
31 3 512 mtdblock3
31 4 3192 mtdblock4
179 0 7761920 mmcblk0
179 1 7757824 mmcblk0p1
.........