This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | resources:tools-software:linuxdsp:docs:quickstartguide:installing:load-uboot-kernel [23 Oct 2020 09:06] – Ann An | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Load the U-boot and Linux Kernel with Script ====== | ||
+ | There is a tool available in $yoctoDir/ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Setup on Ubuntu 18.04 ====== | ||
+ | < | ||
+ | # install python and basic modules for virtual environment | ||
+ | $ source setup-load-env.sh | ||
+ | </ | ||
+ | |||
+ | ====== Usage ====== | ||
+ | |||
+ | The macros provided by option like -m $machine have higher priority than macros in config.py, if there is no options provided, this tool parse the macros in config.py file. | ||
+ | |||
+ | ===== Method 1: Use Macros in config.py file ===== | ||
+ | |||
+ | User just need to update the config.py file then run LUK.py, this is a better choice when user want to load manually. | ||
+ | < | ||
+ | # Update config.py file for the Macros you want to change like BOOTTYPE, EMULATOR, | ||
+ | $ sudo python3 LUK.py | ||
+ | </ | ||
+ | |||
+ | ===== Method 2: Change Macros via options ===== | ||
+ | Options from user have higher priority, when both options specified and macros in config.py, the tool will use options and keep the config.py no change, this is a better choice when user want to load in automation testing. | ||
+ | |||
+ | < | ||
+ | # please provide mount username and password if you want to copy images from share folder like // | ||
+ | $ echo {mount-username} > | ||
+ | $ echo {mount-password} > | ||
+ | |||
+ | # Just load with nfsboot, and no need to copy files | ||
+ | $ sudo python3 LUK.py -b nfsboot -m adsp-sc584-ezkit --ipaddr 10.100.4.50 --serverip 10.100.4.174 | ||
+ | |||
+ | # No need to update uboot and load with ramboot with providing deploy folder | ||
+ | $ sudo python3 LUK.py -b ramboot -m adsp-sc584-ezkit -f / | ||
+ | |||
+ | # Only update uboot, not load kernel, | ||
+ | $ sudo python3 LUK.py -m adsp-sc584-ezkit --updateUboot -e 2000 --ipaddr 10.100.4.50 --serverip 10.100.4.174 | ||
+ | |||
+ | # Update uboot and load with nfsboot with providing deploy folder | ||
+ | $ sudo python3 LUK.py -b nfsboot -m adsp-sc584-ezkit -f / | ||
+ | |||
+ | # Update uboot and load with nfsboot with providing deploy folder using dhcp | ||
+ | $ sudo python3 LUK.py -b nfsboot -m adsp-sc584-ezkit -f / | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | ====== Help ====== | ||
+ | |||
+ | Options just provide the necessary macros that should be changed according to different situations. | ||
+ | < | ||
+ | Options: | ||
+ | -h, --help | ||
+ | |||
+ | [Options]: | ||
+ | -m MACHINE, --machine=MACHINE | ||
+ | Specify the machine name, e.g. adsp-sc589-ezkit, | ||
+ | -b BOOTTYPE, --bootType=BOOTTYPE | ||
+ | Specify the boot type like nfsboot, | ||
+ | -f DEPLOY_FOLDER, | ||
+ | Specify the deploy folder to find the images that to be loaded, you can change DEPLOY_FOLDER in config file | ||
+ | -p COM_PORT, --comPort=COM_PORT | ||
+ | Specify the COM port connected to UART, you can change COM_PORT in config file | ||
+ | -e EMULATOR, --emulator=EMULATOR | ||
+ | Specify the emulator to connect with openOCD, e.g. 1000, 2000, you can change EMULATOR in config file | ||
+ | --ipaddr=IP_ADDR | ||
+ | --serverip=SERVER_IP | ||
+ | --updateUboot | ||
+ | --dhcp | ||
+ | </ |