summaryrefslogtreecommitdiff
path: root/board
AgeCommit message (Collapse)AuthorFilesLines
2021-11-18tizen: amlogic: vim3: adjust MMC device numbers for TizenMarek Szyprowski1-2/+2
Adjust MMC device numbers for SD to #0 and eMMC to #1 to match other Tizen boards and simplify boot scripts. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2021-11-16board: amlogic: odroid: adjust runtime detection for TizenMarek Szyprowski1-2/+5
Adjust file paths of board runtime detection for specific Tizen usage. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2021-11-16rpi: use board_early_init_r to init PCI/USB and detect boot deviceMarek Szyprowski1-0/+25
Move initialization of the PCI and the USB subsystems from the 'preboot' command to the board's early_init_r() function and then try to detect a boot device by accessing the MMC0 device. If it works, then set boot device interface to 'mmc', if not, use 'usb'. This allows the environment variales to be loaded from the proper storage interface. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Idf06ba827167479510206587308875c8eedce892
2021-11-16samsung: tizen_rpi: make 'dfu_alt_info' staticMarek Szyprowski1-65/+0
The data layout on the storage device is the same all the time for RPi3/4 boards and fully known during the compile time. Use this simple approach, which is a bit more error proof for future changes. It also obsoletes the custom code added to RPi boards. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I8f7211cdde50701418464419b774aeecc795efa1
2021-11-16board: rpi: add print_archinfo to display arch informationJaehoon Chung1-0/+2
Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU. - In mainline, it's used to display cpuinfo with CONFIG_DISPLAY_CPUINFO. But PRI4 doesn't implement print_cpuinfo(). Instead, display a cpuinfo in get_board_rev about RPI4 boards. In RPI4 case, U-Boot 2020.10-drity (Jan 15 2021 - 13:24:55 +0900) DARM: 3.9 GiB RPI 4 Model B (0xc03111) CPU: armv7 Change-Id: I485194baa965065f44bac966d014ccfb31b9da60 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16tizen: rpi: move bootscripts to tizen specific directoryJaehoon Chung4-298/+0
Move bootscripts from board/raspberrypi/rpi to tizen/bootscript/. And combine to one script, because those are duplicated almost codes. Change-Id: I2ee929bbcd6cb68566d441a272a1ba3d84beb100 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16tizen: bootscript: move boot scripts under bootscript directoryJaehoon Chung4-388/+0
Move each bootscript files to tizen/bootscript directory. It's more easier to maintain which boot script is used for tizen than now Change-Id: I435fdf8352195091763226fdbb05b844219f5842 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16amlogic: w400: add tizen boot script for vim3lJaehoon Chung1-0/+91
Add tizen boot script for vim3l. Change-Id: I77503992af9bc3955ddd4fefd71ded12351f20d6 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16tizen: amlogic: remove unused environment valuesJaehoon Chung3-39/+0
Remove unused environment values. It doesn't need to enter the flash mode with inform file. If it needs to consider the flash mode, then we can use Amlogic's scheme with secure monitor command. Change-Id: Ia5374f7b2f411c3a48c0d469c837541875f0f84a Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16tizen: amlogic: make 'dfu_alt_info' staticMarek Szyprowski2-147/+0
The data layout on the storage device is the same for both eMMC and SD card, so after switching to the default boot MMC device, the 'dfu_alt_info' string is static, fully known during the compile time. Use this simple approach, which is a bit more error proof for future changes. It also obsoletes the custom code added to Amlogic boards. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I37fc03fe245bfdf5229922ecfd5f0d00ef00b6e6
2021-11-16tizen: use compressed kernel imageMarek Szyprowski3-9/+15
To speed-up kernel load and reduce total image size, use compressed kernel image. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I9f30a4677851053082abb1aa32d93a789666170c
2021-11-16board: amlogic: remove prefixes in boot scriptsJaehoon Chung3-11/+7
Remove prefixes in boot scripts. Instead, use boot_prefixes about each boards. Add a debug message for checking a directory. If there is no kernel image under odroid-c4 directory, then it will search for kernel image under /. Change-Id: I4ca259c31bf8b8a360d9095d5039adcdf77d5590 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: remove DFU_ALT_BOOT_SD about alt_bootJaehoon Chung2-12/+5
It doesn't need to set to DFU_ALT_BOOT_SD. It's only using raw write on Amlogic board. Not need to consider what device is selected. Change-Id: Ie444ded409f16e60e8622611bf2135b034940ecd Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: add odroid-c4 boot script for tizenJaehoon Chung1-0/+80
Add boot script for tizen. Change-Id: If5c3992d710c0edda4a6641edfa07671bcc5f3a7 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: odroid-n2: set an alt_boot information for odroid-c4Jaehoon Chung1-2/+6
Set an alt_boot information for odroid-c4. Change-Id: I4add745c1f37f31105241773361cd7dc08aed08f Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: change a prefixes to search image filesJaehoon Chung2-4/+4
Change a prefixes to search image files. - odroid-n2 : under odroid-n2 directory - kvim3 : under vim3 directory Change-Id: I86c2461b328e53f0b80979618acb2082bc82e9cc Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: add a skip layout in dfu_boot_infoJaehoon Chung2-2/+2
Add a "skip" layout in dfu_boot_info. - kvim3 target: u-boot-n2.bin will be skipped. - odroid-n2 target: u-boot-kvim3.bin will be skipped. Change-Id: I2a81f88c1610d3e5a13e560a4d5cc6c2322df538 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: remove CONFIG_ prefix about dfu informationJaehoon Chung2-6/+12
Remove CONFIG_ prefix about dfu information. Change-Id: I733ff160fa98ac0f70b8d76a0f17fb1d463724f5 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: add set_dfu_alt_info in odroid-n2.cJaehoon Chung1-0/+72
Add set_dfu_alt_info in odroid-n2.c. Change-Id: Ic705a38a221af7dfcdb5a67321739c84a79f61df Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: add the boot script for vim3Jaehoon Chung1-0/+103
Add the boot script for vim3. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: tizen-boot-odroid-n2: change a loading addressJaehoon Chung1-2/+2
Change a loading address to prevent the overwritten image. When Kernel image is increased, it's overwriting ramdisk area. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: fix build warning and add fdt/initrd_highJaehoon Chung1-1/+1
Fix build warning and add fdt_high/initrd_high. (it's taken from Hardkernel u-boot.) Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16include: tizen_amlogic: fix hardcoding about device numberJaehoon Chung1-1/+5
devnmu will be set to correct value at booting time. SD - devnum : 0 eMMC - devnum :1 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: w400: add dfu functions to set dfu's informationJaehoon Chung1-0/+68
Add dfu function to set dfu's information. It's Tizen specific functions. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: tizen-board-odroid-n2: add earlycon into bootargsJaehoon Chung1-1/+1
Add earlycon into bootargs. N2 - aml-uart,0xff803000 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: amlogic: tizen-boot-odorid-n2: update kernel addressJaehoon Chung1-2/+2
Update kernel address. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16amlogic: w400: add tizen-boot odroid-n2 scriptJaehoon Chung1-0/+151
Add tizen-boot-odroid-n2 boot script. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot-rpi3: calculate tizen_kernel_addr_r with ramdisk's sizeJaehoon Chung2-4/+8
Calculate tizen_kernel_addr_r with ramdisk's size. When ramdisk size is increased, kernel loading offset will be also increased. It can prevent to overwrite the images. Change-Id: Ibbec03b4e3380028841d10eee7157c5e86fa8756 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot-rpi4: calculate tizen_kernel_addr_r with ramdisk's sizeJaehoon Chung2-4/+10
Calculate tizen_kernel_addr_r with ramdisk's size. When ramdisk size is increased, kernel loading offset will be also increased. It can prevent to overwrite the images. Change-Id: Icc900b726f46683e5104be7f8ab31f36934f12b5 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot-rpi3: fix hard-coding value about ramdisksizeJaehoon Chung2-8/+4
Current ramdisksize is set to hard-condig value as 0xc00000 or 0x800000. If ramdisk's size is changed to other, it also needs to change. But we're getting the number of block about ramdisk partition. Use its value to load a ramdisk image. Then it's more clear than now. Change-Id: I59e4ed5d1c49e82c2bd76474b1d4bc086fb600e1 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot-rpi4: fix hard-coding value about ramdisksizeJaehoon Chung2-8/+4
Current ramdisksize is set to hard-condig value as 0xc00000 or 0x800000. If ramdisk's size is changed to other, it also needs to change. But we're getting the number of block about ramdisk partition. Use its value to load a ramdisk image. Then it's more clear than now. Change-Id: I450ace4f0e795f0a05f5ff36fcd837349bc5a4aa Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot: rpi: tizen-boot: add tizen boot script for rpi4 64bitSeung-Woo Kim1-0/+72
Add tizen boot script for rpi4 64bit. Change-Id: I5ea641bccfa38dbabf666a783c2c3446daad4992 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2021-11-16rpi: tizen-boot: rpi3: fix wrong setenv usageSeung-Woo Kim1-1/+1
The setenv does not require '='. Fix wrong setenv usage. Change-Id: Idf1bf41655fa80837784fabc441dd2e47ac487a9 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2021-11-16tizen: rpi2/3/4: fix typo in Tizen boot scriptsMarek Szyprowski3-3/+3
/s/comdline/cmdline Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I2464583207200762d981f0d133dacb14ec66a445
2021-11-16rpi: tizen-boot: rpi4-32b; sync boot script with rpi3-32bJaehoon Chung1-2/+15
Sync boot script with rpi3-32b. It's fixed wrong statement and condition check. Change-Id: I3179f1fa9909443bbe8b1711232396f042228877 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot: rpi3-32b: Enable custom network configurationDongwoo Lee1-1/+1
To apply custom network configuration, this patch adds ip_opt to bootcmd. Fixes: 653d68709c27 ("rpi: tizen-boot: rpi3-32b: pass network arguments on flash mode") Change-Id: I42d113f2c1591d62602128bc2e75a464d7cefebc Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2021-11-16rpi: tizen-boot: rpi3-32b: support to enter the flash mode with commandSeung-Woo Kim1-0/+7
Support to enter the flash mode with command. - Refer to below command: U-boot> run tfm Note: this applies, to rpi3-32b from rpi3, the commit cf212f48a110 ("config: tizen_rpi: support to enter the flash mode with command"). Change-Id: I3a801aed172557385abd8651c811708f1f27feec Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2021-11-16rpi: tizen-boot: rpi3-32b: pass network arguments on flash modeSeung-Woo Kim1-0/+6
To setup network environment for flash manager, this patch makes passing parameters such as 'ipaddr', 'netmask', and 'gateway' through kernel bootcmd. Those parameters can be assigned by user-self before using flash mode. Note: this is applying below patches from rpi3 to rpi3-32b: f6f75b5bb37d ("rpi: tizen-boot: rpi3: pass network arguments on flash mode") e2e0f18b9f3e ("rpi: tizen-boot: rpi3: remove dhcp as default network configuration") Change-Id: I8de2c8f26f0a5c276ac32e46a83d8fc71eb1e7fd Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2021-11-16rpi: tizen-boot: rpi3-32b: fix to use setenv for bootmodeSeung-Woo Kim1-1/+1
Fix to use setenv for bootmode instead of assignment for remaining part from the commit 5c008029d782 ("config: tizen_rpi: move env values from boot script to tizen_rpi.h"). Change-Id: I2ae5d58706bc1e5a8c39ee2952bf3ca2355054ec Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2021-11-16rpi: add dfu functions to use thorJaehoon Chung1-0/+65
Add dfu functions to use thor. Change-Id: Ia59960dc05c3680ccef5b6fdc9108bb0be249fb4 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16config: enable THOR download support on Raspberry Pi4 boardsMarek Szyprowski1-0/+5
Change-Id: Icd9091c5670653a551d05aaabf6cc5f1bf0243f6 Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16board: rpi: add tizen boot script for rpi4Jaehoon Chung1-0/+59
Add tizen boot script for rpi4 32bit. Change-Id: Ib497cebb6dc3ef62ecd7164c886cd3e41f5e848c Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot: rpi3: remove unnecessary commentJaehoon Chung1-2/+0
Remove unnecessary comment. Change-Id: I8eebe6b7e24101556ee444d0cebc75edb0d8e454 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16config: tizen_rpi: move some bootarg values to tizen_rpi headerJaehoon Chung2-2/+2
Some bootargs values can be located to tizen_rpi header. Because it's used same value in script of rpi3 and rpi3 32b. Change-Id: I73d2d473d624f2ffa37f1fe0ed959ff098bb9247 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16config: tizen_rpi: support to enter the flash mode with commandJaehoon Chung1-0/+7
Support to enter the flash mode with command. - Refer to below command: U-boot> run tfm Change-Id: Ie5835573cdefb3ccfe3b67d3d20a4e301672251c Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16config: tizen_rpi: move env values from boot script to tizen_rpi.hJaehoon Chung2-99/+25
Some environment values are used with same value. It can be moved to tizen_rpi header. Change-Id: I679491fc03e0381df94025044e80e476f0953db2 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-11-16rpi: tizen-boot: rpi3: remove dhcp as default network configurationDongwoo Lee1-2/+0
If there is no ip setup on environmental variable, dhcp is used as default. But, in this case, if dhcp server is not set on connected network neither, kernel waits dhcp server for a long time (about 3 minutes). So this patch removes dhcp option. After this, tfm handles unconfigured network. Change-Id: I513503d2ba81b2342c42967fc1b8cb74f17ce215 Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2021-11-16rpi: tizen-boot: rpi3: pass network arguments on flash modeDongwoo Lee1-1/+9
To setup network environment for flash manager, this patch makes passing parameters such as 'ipaddr', 'netmask', and 'gateway' through kernel bootcmd.Those parameters can be assigned by user-self before using flash mode. Change-Id: Ifda261598978b4cc985fe43e2e612fd58c49fdd1 Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2021-11-16rpi: tizen-boot: rpi3/rpi3-32b: add dwc_otg option like raspbian cmdlineSeung-Woo Kim2-2/+2
From raspbian cmdline.txt, from kernel related otpion, there is dwc_otg.lpm_enable=0 which is not in Tizen u-boot booting script. Add dwc_otg option line raspbian. Change-Id: I37a723f63bae288f9d9d3e0b88adca01398f3c22 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2021-11-16rpi: tizen-boot: rpi3/rpi3-32b: set dt filename by its modelSeung-Woo Kim2-2/+12
To identify rpi3 b model and rpi3 b+ model, set dt filename by its model. Note: Tizen uses raspbian vendor kernel, so raspbian dt name is used instead of mainline file name set by booting. Change-Id: I84dc4a38e5f21527912749eee28d784245123340 Reference: 7fe77226aa29 ("rpi: Add identifier for the new RPi3 B+") Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>