9root file system boot from s-ata, Drive – Kontron KTAM3874-pITX User Manual
Page 35

KTD-S0057-I
Page 31
Root File System Boot from S-ATA® Drive
KTAM3874/pITX Software Guide
Thereafter type the following line
# sudo dd if=/boot/uImage of=/dev/mtdblock4
4626+1
records
in
4626+1
records
out
... bytes (... MB) copied, ... s, 46.0 kB/s
9
Root File System Boot from S-ATA
®
Drive
The S-ATA
®
part (mSATA
®
or standard S-ATA
®
connector) offers the fastest board interface. This is the only
way of achieving transfer rates about 150 MB/s, normally only with SSD drives. The kernel does not
automatically mount the drive therefore you have to modify the configuration file
etc/fstab
(per default
this file is empty). The example uses a freely chosen drive identifier (sda1) and target directory.
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/sda1 /media/sata ext4 defaults 0 1
After update you should create the new directory
/media/sata
. But this method has a serious disadvantage:
if you remove the drive the kernel stops with an error message.
Furthermore the U-Boot environment needs an additional modification:
spiboot =setenv root_bootargs
root=/dev/sda1
rw rootwait;run setbootarg;sf probe 0 && sf read ${loadaddr}
0xE2000 0x31E000 && bootm ${loadaddr}