Hi
I was hoping to clarity some doubts over the Linux procedure for flashing the boot loader to the S4SK.
I have already built the Yocto BSP and I am ready to follow the steps for "How to flash/update the loader" (as specified https://elinux.org/R-Car/Boards/S4SK#How_to_flash.2Fupdate_the_loader).
I have previous experience flashing the files before for the Renesas R-Car S3 SK using Linux (Ubuntu) and minicom (as specified https://elinux.org/R-Car/Boards/H3SK#Flashing_firmware). These steps look similar to the S4SK Windows procedure, and my understanding is the \renesas-bsp-rom-writer\board\s4_sk\windows\yocto_writer.ttl automates most of the steps here: https://elinux.org/R-Car/Boards/H3SK#Flashing_firmware, is that correct?
What is not clear from the procedure (https://elinux.org/R-Car/Boards/S4SK#Linux.28Ubuntu.29_User) is how to configure the USB Serial Cable and the configuration for the SW3 switches are for following the Linux procedure.
Can I confirm the procedure for flashing with Linux(Ubuntu) (https://elinux.org/R-Car/Boards/S4SK#Linux.28Ubuntu.29_User) is as follows:
Then run $ ${renesas-bsp-rom-writer}/board/s4_sk/linux/yocto_writer for bootloader? The procedure (https://elinux.org/R-Car/Boards/S4SK#Linux.28Ubuntu.29_User) suggests running $ ${renesas-bsp-rom-writer}/board/s4_sk/linux/sdk_writer which I think is not correct for what I'm doing here, could this please be clarified? The documentation does not clarify the difference between the sdk_writer and yocto_writer for flashing the loader.
Thanks
Hi david_evans_g,
I found a difference between yocto_writer and sdk_writer:
sdk_writer parses this file:renesas-bsp-rom-writer/board/s4_sk/config/rom/sdk/map01 at master · morimoto/renesas-bsp-rom-writer (github.com)
addr_map[7] = "46400000,0E00000,bl31-spider.srec" addr_map[8] = "44100000,0E80000,tee-spider.srec"
yocto_writer parses this file: renesas-bsp-rom-writer/board/s4_sk/config/rom/yocto/map01 at master · morimoto/renesas-bsp-rom-writer (github.com)
addr_map[7] = "46400000,0E00000,bl31-s4sk.srec" addr_map[8] = "44100000,0E80000,tee-s4sk.srec"
For S4 Starter Kit, the correct one should be yocto_writer for Linux host and yocto_writer.ttl for Windows host. I got error also when using sdk_writer.
Hi, DuyDang.
So *this* procedure (yocto_writer on Linux), will flash the u-boot(?) boot-loader for me?
It will flash the bootloader (including u-boot), same procedure as "How to flash/update manually" part above.
The macro/script is not fully automated, it will show the message and ask you to confirm board status on each step.
Thank you very much for your time, DuyDang.