Save Linux Kernel to serial FLASH on AMC1 via U-Boot

From DSignT Support Database
Jump to: navigation, search


1 Load Linux Kernel

1.1 from TFTP server

Load a Kernel image from TFTP server (correct network settings provided: AMC1_NetConfig.ser):

tftpboot ${loadaddr} zImage-dsignt_amc1.bin
AMC1> tftpboot ${loadaddr} zImage-dsignt_amc1.bin
link up on port 1, speed 1000, full duplex
Using cpsw device
TFTP from server 192.168.168.208; our IP address is 192.168.168.173
Filename 'zImage-dsignt_amc1.bin'.
Load address: 0x80200000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
         1 MiB/s
done
Bytes transferred = 3759704 (395e58 hex)
AMC1>

1.2 from USB memory stick

1.2.1 usb start

MC1> usb start
starting USB...
USB0:   Register 2000440 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
AMC1>

1.2.2 fatload usb 0:1 ${loadaddr} zImage-dsignt_amc1.bin

AMC1> fatload usb 0:1 ${loadaddr} zImage-dsignt_amc1.bin
reading zImage-dsignt_amc1.bin
3759704 bytes read in 2080 ms (1.7 MiB/s)
AMC1>



2 Save to serial FLASH

2.1 sf probe

First step to access the QSPI FLASH is to probe for the SF. If not yet probed, execute probe command

AMC1> sf probe
SF: Detected w25q64cv with page size 256 Bytes, erase size 4 KiB, total 8 MiB, mapped at 30000000
AMC1>

2.2 Erase FLASH area

sf erase 0x200000 0x400000
AMC1> sf erase 0x200000 0x400000
AMC1> 
SF: 4194304 bytes @ 0x200000 Erased: OK

2.3 Write Kernel to serial FLASH

sf write ${loadaddr} 0x200000 0x400000
AMC1> sf write ${loadaddr} 0x200000 0x400000
device 0 offset 0x200000, size 0x400000
SF: 4194304 bytes @ 0x200000 Written: OK
AMC1>



Arr u.png    back to top

3 Additional Tags

Serial FLASH mapping on AMC1
Serial FLASH programming via U-Boot on AMC1
Network settings for U-Boot on AMC1
Save DTB to serial FLASH on AMC1 via U-Boot


Contact Post.png Support Tool.png