Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 148958

Forum Post: RE: spi flash boot

$
0
0

Hi Eric,

The hex dumps from the MLO files seem fine. I can't explain why the md5sums are different.

Please try these exact commands to flash the SPI flash with the images. The offset of the u-boot.img is 0x80000 and not 0x20000:

U-Boot# sf probe 0
SF: Detected W25Q64 with page size 4 KiB, total 8 MiB
U-Boot# mmc rescan
U-Boot# sf erase 0 +80000
U-Boot# fatload mmc 0 0x82000000 MLO.byteswap
reading MLO.byteswap
100965 bytes read in 15 ms (6.4 MiB/s)
U-Boot# sf write 0x82000000 0 0x20000
U-Boot# fatload mmc 0 0x82000000 u-boot.img.spiboot
reading u-boot.img.spiboot
364572 bytes read in 45 ms (7.7 MiB/s)
U-Boot# sf write 0x82000000 0x80000 0x60000

Then stop the board, change the sysboot switches for SPI boot and turn the board on.

Regarding your second question, there are no am335x_evm_uart3_spiboot or am335x_evm_spiboot_uart3 make options. To view all the U-Boot make options please do the following:

cat <u-boot_dir>/boards.cfg | grep am335x

This will list all the options:

[quote]am335x_evm                   arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1
am335x_evm_nor               arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,NOR
am335x_evm_norboot           arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,NOR,NOR_BOOT
am335x_evm_spiboot           arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,SPI_BOOT
am335x_evm_uart1             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL2,CONS_INDEX=2
am335x_evm_uart2             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL3,CONS_INDEX=3
am335x_evm_uart3             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL4,CONS_INDEX=4
am335x_evm_uart4             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL5,CONS_INDEX=5
am335x_evm_uart5             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL6,CONS_INDEX=6
am335x_evm_usbspl            arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,SPL_USBETH_SUPPORT
am335x_evm_restore_flash     arm    armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,RESTORE_FLASH
am335x_evm_restore_flash_usbspl   arm    armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,RESTORE_FLASH,SPL_USBETH_SUPPORT
am335x_evm_uart_usbspl       arm    armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,UART_THEN_USB_SPL,SPL_USBETH_SUPPORT
am335x_evm_restore_flash_uart_usbspl       arm    armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,RESTORE_FLASH,UART_THEN_USB_SPL,SPL_USBETH_SUPPORT
[/quote]

I guess you can modify the am335x_evm_spiboot option to display the serial console on UART3 port.

Best regards,
Miroslav


Viewing all articles
Browse latest Browse all 148958

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>