Jaehoon Chung [Tue, 10 Nov 2020 08:02:55 +0000 (17:02 +0900)]
mmc: meson_gx_mmc: enable DDR_52MHz mode
Enable DDR_52MHz mode.
Change-Id: I6bdebff8069f901fe7fc7fdd551d02e0ba89c60e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 10 Nov 2020 07:44:53 +0000 (16:44 +0900)]
mmc: meson_gx_mmc: control ddr_mode bit
EMMC_CFG register has a cfg_ddr bit(BIT[2]).
It needs to set when mmc is running to ddr mode.
Otherwise, its bit should be cleared.
CFG_DDR[2] - 1: DDR mode, 0: SDR mode
Change-Id: I5b1ddc6492e9c0d90e974fa31b13eacdee6e38e3
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 10 Nov 2020 07:07:20 +0000 (16:07 +0900)]
tizen: add build script about amlogic board
It's complicated to build amlogic boards.
It will be helpful to provide the build script about each boards.
Change-Id: Iaa17e3a728ba323e2de81f6deaf1b3bf92b91ae5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 07:48:24 +0000 (16:48 +0900)]
board: amlogic: add odroid-c4 boot script for tizen
Add boot script for tizen.
Change-Id: If5c3992d710c0edda4a6641edfa07671bcc5f3a7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 07:09:23 +0000 (16:09 +0900)]
packaging: u-boot-c4: Add u-boot-c4 spec file
Add u-boot-c4 spec file.
Change-Id: I7452d64821cad3ff32c87233fe7c08b825988641
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 06:34:21 +0000 (15:34 +0900)]
samsung: tizen_amlogic: remove CONFIG_SYS_PROMPT in header file
Remove CONFIG_SYS_PROMPT in tizen_amlogic header file.
Instead, it's enabled in each defconfigs with correct board name.
Change-Id: I8d47240e2af97bb2833f4af8720d019588a72e22
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 06:16:25 +0000 (15:16 +0900)]
samsung: tizen_amlogic: add alt_system info for odroid-c4
Add alt_system information for Odroid-C4.
- Kernel will be located to /odroid-c4/ directory.
Change-Id: I4b337349e465bdd3df5864bb724f78903d4ee46c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 04:53:52 +0000 (13:53 +0900)]
configs: odroid-c4: fix ENV_SIZE and other configs
Fix ENV_SIZE and other configs.
- Change from 0x2000 to 0x4000
- SYS_MMC_ENV_DEV/PART set to 1.
- Enable CONFIG_TIZEN_ODROID_C4
- SYS_PROMPT is "Odroid C4>"
Change-Id: I888b3b531152663566a646f024c408c66f8d7bf3
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 04:37:31 +0000 (13:37 +0900)]
configs: odroid-c4: support THOR protocol on Odroid-C4
Support THOR protocol on Odroid-C4.
Change-Id: I3e1b20139e9064dcdfd4b87af89f7ce520b0cbc2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 04:36:17 +0000 (13:36 +0900)]
board: odroid-n2: set an alt_boot information for odroid-c4
Set an alt_boot information for odroid-c4.
Change-Id: I4add745c1f37f31105241773361cd7dc08aed08f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 04:34:59 +0000 (13:34 +0900)]
samsung: tizen_amlogic: add dfu_alt_boot for Odroid-C4
Add dfu_alt_boot for Odroid-C4.
Bootloader name should be u-boot-c4.bin.
Change-Id: Iea4be8183124213333722733cbc65166fdb87f5f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 04:19:02 +0000 (13:19 +0900)]
ARM: meson: Add TIZEN_ODROID_C4 config
Add TIZEN_ODROID_C4 configuration.
It's to disinguish with other amlogic boards.
Change-Id: I41eebb30a22538f53d25bf34646b796d3d608d99
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 9 Nov 2020 03:04:14 +0000 (12:04 +0900)]
mmc: meson_gx_mmc: change a clock phase to stable value
Core clock phase value is changed from 180' to 270'.
It's more stable than before.
- Odroidn-N2/C4 : Working fine
- VIM3 : Working fine
Before this patch, Odroid-C4 doesn't work fine with 52MHz.
Change-Id: Ica3b034a9c229b76e23cd3a5cb90fbf1f1350f34
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 6 Nov 2020 00:12:46 +0000 (09:12 +0900)]
fip: add the prebuilt image to use odroid-c4
Add the prebuilt image to use odroid-c4.
These files are taken from hardkernel github and built in local.
- https://github.com/hardkernel/u-boot.git -b odroidg12-v2015.01
Refer to doc/board/amlogic/odroid-c4.rst
Change-Id: If030fccddd2fcc96c051b363695ad825cca1d25b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 6 Nov 2020 04:08:33 +0000 (13:08 +0900)]
configs: enable CONFIG_SET_DFU_ALT_INFO in defconfig
Enable CONFIG_SET_DFU_ALT_INFO in defconfig instead of header file.
Change-Id: I5825eb9a0d524df2c001ee51caa7f02b0fb98a74
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 5 Nov 2020 03:11:37 +0000 (12:11 +0900)]
configs: odroid-n2: fix ENV_SIZE and other configs
Fix ENV_SIZE and other configs.
- Change from 0x2000 to 0x4000
- SYS_MMC_ENV_DEV/PART is set to 1
Change-Id: I3048e7a2838a6ce46c8986685791309619e66028
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 4 Nov 2020 01:24:42 +0000 (10:24 +0900)]
configs: khadas-vim3: fix ENV_SIZE and other configs
Fix ENV_SIZE and other configs.
- Change from 0x2000 to 0x4000
- SYS_MMC_ENV_DEV/PART is set to 1
Change-Id: I094c493e374017deeaa413404fa8445b31c255c6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 2 Nov 2020 00:03:01 +0000 (09:03 +0900)]
samsung: tizen_amlogic: add TIZEN_BOOT_PREFIX to load script
Add TIZEN_BOOT_PREFIX to load a boot script.
Change-Id: Ie309ebc86baf9558070e0b56c973d7661f1d9d99
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 1 Nov 2020 23:56:31 +0000 (08:56 +0900)]
configs: meson64: relocate a config_distro_bootcmd header
Relocate a config_distor_bootcmd header before setting
CONGIT_EXTRA_ENV_SETTING.
Change-Id: I84272c9292c32c40d96693d622be31e9e7ac59c4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 1 Nov 2020 23:43:07 +0000 (08:43 +0900)]
ARM: meson: Kconfig: Add Tizen specific configuration
Add Tizen Specific configuratoin.
- Enable tizen configuration to distinguish which board is used.
Change-Id: I09329b59cb7c2c47f72198a4bebde6ee511ffc7b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 1 Nov 2020 23:41:13 +0000 (08:41 +0900)]
board: amlogic: change a prefixes to search image files
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>
Jaehoon Chung [Sun, 1 Nov 2020 23:39:11 +0000 (08:39 +0900)]
packaging: add directory about each targets
Add directory about each targets.
- odroid-n2 / vim3
- The images of each targets will be located into there.
Change-Id: I2453d508975e2127fc66c500bfd1cf71b1fbd5ad
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 30 Oct 2020 11:12:07 +0000 (20:12 +0900)]
samsung: tizen_amlogic: update dfu_alt_system information
Update dfu_alt_system information.
Each files can be flashed to proper folder.
Change-Id: Ie2801e0e811ed8d191bfc70d5831c5d25d10454d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 30 Oct 2020 09:55:27 +0000 (18:55 +0900)]
configs: khadas-vim3: enable persistent env on first FAT partition
This allows to save the environment variables (i.e. ipaddr, serverip, and so on) on the eMMC.
Change-Id: I72d80045aa3891acc01fd41821b9a344b92a5661
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Marek Szyprowski [Fri, 30 Oct 2020 09:29:10 +0000 (18:29 +0900)]
configs: odroid-n2: enable persistent env on first FAT partition
This allows to save the environment variables (i.e. ipaddr, serverip, and so on) on the eMMC.
Change-Id: I22f04cc7654ccd7e88f6c715df167cacd4b538ea
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 30 Oct 2020 07:22:32 +0000 (16:22 +0900)]
board: amlogic: add a skip layout in dfu_boot_info
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>
Jaehoon Chung [Fri, 30 Oct 2020 06:45:25 +0000 (15:45 +0900)]
dfu: add DFU_SKIP layout concept
Add DFU_SKIP layout concept.
If layout is "skip", it will be skipped after nothing to do.
- Add information into dfu_alt info
e.g) "u-boot.bin skip 0 0"
Change-Id: I96af2630ffabe87b71e514cad7bcc3513f221159
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 30 Oct 2020 03:00:03 +0000 (12:00 +0900)]
board: amlogic: remove CONFIG_ prefix about dfu information
Remove CONFIG_ prefix about dfu information.
Change-Id: I733ff160fa98ac0f70b8d76a0f17fb1d463724f5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 29 Oct 2020 23:10:38 +0000 (08:10 +0900)]
packaging: add amlogic boards spec files
Add amlogic boards spec files.
- u-boot-kvim3 : Khadas VIM3
- u-boot-n2 : Odroid N2
Change-Id: I77da10475a692be348be094df592141f1e6d4088
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 27 Oct 2020 08:13:22 +0000 (17:13 +0900)]
board: amlogic: add set_dfu_alt_info in odroid-n2.c
Add set_dfu_alt_info in odroid-n2.c.
Change-Id: Ic705a38a221af7dfcdb5a67321739c84a79f61df
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 26 May 2020 07:22:32 +0000 (16:22 +0900)]
configs: khadas-vim3: enable FAT_WRITE config
Enable FAT_WRITE configuration.
Change-Id: I5226a34965ef402639865fffbb8f24ba4c7449e1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 26 May 2020 06:55:13 +0000 (15:55 +0900)]
samsung: tizen_amlogic: add kvim3_linux.dtb into dfu_info
Add kvim3_linux.dtb in dfu_inf.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 26 May 2020 04:15:51 +0000 (13:15 +0900)]
configs: khadas-vim3: enable configs relevant to video
Enable configs relevant to video.
- Before enabled this, it was occurred panic during kernel booting.
Change-Id: I97fe4d440c057a04f92ea16c3551072b74ae0ce7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 26 May 2020 04:00:16 +0000 (13:00 +0900)]
configs: khadas-vim3: enable configs relevant to thor command
Enable configs relevant to thor command.
Change-Id: Ib77bf6ae5f5878dfcadb680af6d2017c983e4400
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 26 May 2020 03:35:55 +0000 (12:35 +0900)]
arm: dts: meson-khadas-vim3: disable sdio interface
Disable sdio interface for WiFi.
U-boot doesn't support Wifi.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 26 May 2020 02:41:30 +0000 (11:41 +0900)]
board: amlogic: add the boot script for vim3
Add the boot script for vim3.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 25 May 2020 08:27:28 +0000 (17:27 +0900)]
fip: kvim3: add prebuilt firmware files for VIM3
Add prebuilt firmware files for VIM3.
- https://github.com/khadas/u-boot.git -b khadas-vims-v2015-01
Change-Id: Id8d87bfc702c8f3d05909088ae3a6daea0e1c7ef
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 25 May 2020 06:49:47 +0000 (15:49 +0900)]
fip: move files to n2 directory
Move files to n2 directory.
Change-Id: Ifef7645fa876069a933462e647c6d839d92ab7bb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:37:04 +0000 (07:37 +0900)]
board: amlogic: tizen-boot-odroid-n2: change a loading address
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>
Jaehoon Chung [Sun, 10 May 2020 22:37:01 +0000 (07:37 +0900)]
board: amlogic: fix build warning and add fdt/initrd_high
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>
Jaehoon Chung [Sun, 10 May 2020 22:36:57 +0000 (07:36 +0900)]
configs: odroind-n2: enable FAT_WRITE config
Enable FAT_WRITE config.
It's used when kernel image is flashed to vfat partition.
Change-Id: Ifd0812cb402b57f2e573354c3dc02fdb3b266895
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:36:53 +0000 (07:36 +0900)]
include: tizen_amlogic: fix hardcoding about device number
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>
Jaehoon Chung [Sun, 10 May 2020 22:36:50 +0000 (07:36 +0900)]
usb: gadget: f_thor: use small packet and store unit size for N2
Use samll packet size and store unit size for Odroid-N2.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:36:47 +0000 (07:36 +0900)]
include: tizen_amlogic: set dfu buf/max file size
Set dfu buf/max file size.
And changed image names for amlogic.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:36:44 +0000 (07:36 +0900)]
configs: odrond-n2: enable THOR configurations
Enable THOR configurations.
Change-Id: Iea9914004f98e15dd2436a63ea6d6ea04efdacff
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:36:40 +0000 (07:36 +0900)]
board: w400: add dfu functions to set dfu's information
Add dfu function to set dfu's information.
It's Tizen specific functions.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:36:35 +0000 (07:36 +0900)]
configs: odroid-n2: enable configs relevant to video
Enable configs relevant to video.
Change-Id: Ib5a7c75c74d6cd644b0dab50b3f80e9d64237cc9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:36:32 +0000 (07:36 +0900)]
[WIP] meson: board-g12a: add COFNIG_TIZEN about reserved memory
Add CONFIG_TIZEN about reserved-memory for secure monitor.
- This is for using only Hardkernel's kernel.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:35:48 +0000 (07:35 +0900)]
samsung: tizen_amlogic: add CONFIG_SYS_MEM_TOP_HIDE
Add CONFIG_SYS_MEM_TOP_HIDE as 0x08000000.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:35:44 +0000 (07:35 +0900)]
board: amlogic: tizen-board-odroid-n2: add earlycon into bootargs
Add earlycon into bootargs.
N2 - aml-uart,0xff803000
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:35:40 +0000 (07:35 +0900)]
samsung: tizen_amlogic: change SYS_PROMPT value
Change SYS_PROMPT value from "=>" to "Odroid N2>".
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:35:19 +0000 (07:35 +0900)]
board: amlogic: tizen-boot-odorid-n2: update kernel address
Update kernel address.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:35:15 +0000 (07:35 +0900)]
configs: tizen_amlogic: add tizen specific haeder for amlogic
Add Tizen specific header for amlogic.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:34:55 +0000 (07:34 +0900)]
amlogic: w400: add tizen-boot odroid-n2 script
Add tizen-boot-odroid-n2 boot script.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Sun, 10 May 2020 22:34:24 +0000 (07:34 +0900)]
fip: add Amlogic prebuilt firmware files for Odroid-N2
Add amlogic prebilt firmware files for Odroind-N2.
It needs to make u-boot.bin.
Change-Id: I39b3b1145f4f9006632e97702db4e56cea651952
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Thu, 29 Oct 2020 11:41:20 +0000 (20:41 +0900)]
fip: set all file in fip dir as binary
Change-Id: I44175d8d7f778f59649abb7d2310ace1346bf8b5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Wed, 21 Oct 2020 12:28:41 +0000 (21:28 +0900)]
usb: gadget: dwc2_udc_otg: return zero when reset property is not present
If reset DT property is not present, -ENOENT is returned.
But it's not really error.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 21 Oct 2020 10:07:20 +0000 (19:07 +0900)]
configs: rpi_4_32b: enable UMS config
Enable UMS configuration to use mass storage.
Change-Id: Ic7dc117e21e025776f7d4711ca63457b3148d166
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 21 Oct 2020 02:45:12 +0000 (11:45 +0900)]
packaging: update version info from 2019.10 to 2020.10
Update version info from 2019.10 to 2020.10.
Change-Id: I84d1ed4cd3842e9a5baec04d46e5b07dbda4b584
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 21 Oct 2020 03:11:36 +0000 (12:11 +0900)]
bootm: fix wrong conditions about images overlap
It doesn't need to consider start byte address.
If ramdisk size is 0x800000 and start address is 0x2700000, then it's
used until 0x02efffff, not 0x02f00000. But it's detected to overlapt RD
image, when kernel start address is 0x02f00000.
Because it's doing wrong calculation about rd_len.
This patch fixed wrong calculation address position when check
condition.
In addition, it needs to check one more condition about overlapping
entire area.
Fixes: commit
fbde7589ce30 ("common: bootm: add checks to verify if ramdisk / fdtimage overlaps OS image")
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 20 Oct 2020 06:10:36 +0000 (15:10 +0900)]
configs: tizen: enable configs relevant to ENV in defconfig
Enable configs relevant to ENV in defconfig.
And remove them from tizen header.
Change-Id: I9e89d73e5919bb181c4b2125b5417aedc0222c9d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 20 Oct 2020 05:26:55 +0000 (14:26 +0900)]
configs: xu3: enable IP_DEFRAG configuration
Eanble IP_DEFRAG configuration in defconfig.
And remove its config form odrid_xu3 header.
Change-Id: I73f3b08402f08ccae0717c6b32e1b717f5350cd9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 20 Oct 2020 04:36:16 +0000 (13:36 +0900)]
configs: rpi4: enable IP_DEFRAG configuration
Enable IP_DEFRAG configuration in defconfig file.
And Remove its config from tizen_rpi header.
Change-Id: Ie622b593639f9838773bff85e664aaf4d660d6dd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Fri, 16 Oct 2020 06:56:20 +0000 (15:56 +0900)]
gadget: f_thor: fix wrong file size cast
Casting 32bit int value directly into 64bit unsigned type causes
wrong value for file size equal or larger than 2GB. Fix the wrong
file size by casting uint32_t first.
Change-Id: I7b344856e2cabfb31ef05521c09914599163d923
Fixes: commit
1fe9ae76b113 ("gadget: f_thor: update to support more than 4GB file as thor 5.0")
Reported-by: Junghoon Kim <jhoon20.kim@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Sylwester Nawrocki [Wed, 7 Oct 2020 17:39:20 +0000 (19:39 +0200)]
cmd: Remove unreachable code from netboot_nfs()
rcode is always 0 (CMD_RET_SUCCESS) so last bootstage_error() call is never
executed. Remove it altogether with the rcode local variable.
This supresses following SVACE warning:
* UNREACHABLE_CODE: This statement in the source code might be unreachable during program execution.
[unreachable] unreachable at cmd/net.c:312
[rcode != 0 is always false because at this program point the variable rcode is always equal to 0]
rcode != 0 is always false because at this program point the variable rcode is always equal to 0
at cmd/net.c:309
Change-Id: Idf4759839897a35fb47870bf953d35bcb5f0cad8
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Thu, 10 Sep 2020 08:31:09 +0000 (10:31 +0200)]
rpi: perform xhci firmware upload only once
This fixes usb stack initialization after calling "usb stop".
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Icb3f3478c02b17c4e80cd924685492dc373b5c1f
Nicolas Saenz Julienne [Tue, 5 May 2020 16:26:07 +0000 (18:26 +0200)]
usb: xhci: Load Raspberry Pi 4 VL805's firmware
When needed, RPi4's co-processor (called VideoCore) has to be instructed
to load VL805's firmware (the chip providing xHCI support). VideCore's
firmware expects the board's PCIe bus to be already configured in order
for it to load the xHCI chip firmware. So we have to make sure this
happens in between the PCIe configuration and xHCI startup.
Introduce a callback in xhci_pci_probe() to run this platform specific
routine.
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
[mszyprow: backport of https://patchwork.ozlabs.org/project/uboot/list/?series=174860&state=%2A&archive=both
the final mainline patch depends on DTS changes not present in vendor tree]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I1391806cae261d1ce22137e1a8baf5e261cb865a
Jaehoon Chung [Wed, 5 Aug 2020 04:54:47 +0000 (13:54 +0900)]
configs: rpi_3: disable configs relevant to SPL
Disable configs relevant to SPL.
It doesn't need to enable anymore.
Change-Id: Idbe37b441e7dc3e2488a2db154522257f2c08722
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 5 Aug 2020 03:53:39 +0000 (12:53 +0900)]
packaging: u-boot-rpi3: remove unnecessary files
Remove unnecessary files. It was used to boot with optee.
But it doesn't use anymore because trust-firmware doesn't support.
Change-Id: I115ba5e6099b624a2113b8cdf1934699f31b6757
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Matthias Brugger [Fri, 29 May 2020 14:42:22 +0000 (16:42 +0200)]
configs: rpi: set NR_DRAM_BANKS to four
With the new RPi4 which has 8 GB of RAM, we can have up to four DRAM
banks. Bump up the configuration files to detect all the memory in
U-Boot.
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
[sw0312.kim: cherry-pick mainline commit
a61cf765f7e3 to support rpi4 8GB dram]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I7d47e4ae3b70166cde96bc0c86011a8ff4f54262
Jaehoon Chung [Tue, 23 Jun 2020 10:04:56 +0000 (19:04 +0900)]
scripts: tizen: sd_fusing_rpi3: change partition size
Change partition size to use 64bit image.
- ramdisk-recovery : 12MB -> 32MB
- system-data : 512MB -> 1.3GB
- modules : 20MB -> 32MB
- reserved1 : 64MB
- reserved2 : 128MB
Change-Id: I6bb1cca052af91e0e66f6148b76055c60670aead
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 22 Jun 2020 02:24:36 +0000 (11:24 +0900)]
samsung: tizen_rpi: remove unnecessary variable and comment
Remove unnecesarry environment variable.
ramdisksize and tizen_kernel_addr_r are set to correct value in boot
script.
Because comment was not valid, it doesn't need to keep.
Change-Id: Ica280a521ba538340b9dfbe640e6a5fd9839ab85
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 22 Jun 2020 02:18:46 +0000 (11:18 +0900)]
rpi: tizen-boot-rpi2: calculate tizen_kernel_addr_r with ramdisk's size
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: Id65e084a0e076a95ffe005955ef4c12e7554fa07
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 22 Jun 2020 02:18:03 +0000 (11:18 +0900)]
rpi: tizen-boot-rpi3: calculate tizen_kernel_addr_r with ramdisk's size
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>
Jaehoon Chung [Fri, 19 Jun 2020 03:56:33 +0000 (12:56 +0900)]
rpi: tizen-boot-rpi4: calculate tizen_kernel_addr_r with ramdisk's size
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>
Seung-Woo Kim [Thu, 18 Jun 2020 04:20:35 +0000 (13:20 +0900)]
rpi: tizen-boot-rpi2: fix hard-coding value about ramdisksize
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: I96e1e383d4603f2375a45193a72a95f261bb996d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Thu, 18 Jun 2020 04:04:18 +0000 (13:04 +0900)]
rpi: tizen-boot-rpi3: fix hard-coding value about ramdisksize
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>
Jaehoon Chung [Wed, 17 Jun 2020 11:44:37 +0000 (20:44 +0900)]
rpi: tizen-boot-rpi4: fix hard-coding value about ramdisksize
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>
Jaehoon Chung [Tue, 9 Jun 2020 23:32:56 +0000 (08:32 +0900)]
configs: rpi_4_defconfig: enable ums configuration
Enable ums configuration.
And CONFIG_ARCH_FIXUP_FDT_MEMORY was enabled by default.
Change-Id: I4eaebba7b3fd05bc01d125b159289056162d203a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Marek Szyprowski [Tue, 9 Jun 2020 03:42:07 +0000 (12:42 +0900)]
tizen: sd_fusing_xu4.sh: Support for non-sdX partition names
Properly find partiton device names for the given block device. In
case of MMC (or loop) partition names are created in a different way
(/dev/mmcblk0p1) than for typical USB pen-drives (/dev/sdb1).
Change-Id: Ic486e97a4e04c25dc438315bcefa668945765e65
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Mon, 8 Jun 2020 08:01:16 +0000 (10:01 +0200)]
tizen: sd_fusing_rpi3.sh: Support for non-sdX partition names
Properly find partiton device names for the given block device. In
case of MMC (or loop) partition names are created in a different way
(/dev/mmcblk0p1) than for typical USB pen-drives (/dev/sdb1).
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I4e3e272acd85bcd5a54ff8102a3978d18ea5687e
Marek Szyprowski [Fri, 5 Jun 2020 12:52:02 +0000 (14:52 +0200)]
configs: rpi_4: Enable CONFIG_ARCH_FIXUP_FDT_MEMORY for Tizen
On Tizen, a custom dtb loaded directly from boot partition is used instead of the one provided by the VC4 firmware, thus u-boot needs to update the
memory information in the loaded dtb. Without this option, the memory information is missing
and the loaded Linux kernel crashes early.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ic78d134aaef2ab272f839d305b5db3e79b0ef90b
Seung-Woo Kim [Fri, 5 Jun 2020 07:46:03 +0000 (16:46 +0900)]
packaging: rpi4: add rpi4 64-bit spec file
Add rpi4 64-bit spec file.
Change-Id: I569df01d93a1d08de28f56f1ccbaf4a1600d79c0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 5 Jun 2020 07:42:28 +0000 (16:42 +0900)]
rpi: tizen-boot: rpi: tizen-boot: add tizen boot script for rpi4 64bit
Add tizen boot script for rpi4 64bit.
Change-Id: I5ea641bccfa38dbabf666a783c2c3446daad4992
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 5 Jun 2020 07:40:52 +0000 (16:40 +0900)]
rpi: tizen-boot: rpi3: fix wrong setenv usage
The setenv does not require '='. Fix wrong setenv usage.
Change-Id: Idf1bf41655fa80837784fabc441dd2e47ac487a9
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Tue, 19 May 2020 12:46:43 +0000 (14:46 +0200)]
mmc: s5p_sdhci: add Tizen specific bind codes
Add Tizen specific bind codes for OdroidU3. When device is booted from SD,
SDHCI MMC controller is registered as MMC0, like it is done for DWMMC for OdroidXU3.
Based on commit 76f4fcf ("mmc: exynos_dw_mmc: add tizen specific bind codes").
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I624be4f0c6f7b1ce5a392249d73e36785649fd35
Seung-Woo Kim [Tue, 19 May 2020 10:32:17 +0000 (19:32 +0900)]
Revert "bootstage: enable bootstage timing report to fdt"
This reverts commit
cc19bd066c446a91d0e1292e2e21fc9395afb92a
pratially for odroid_defconfig. From other defconfigs including
tizen_defconfig and odroid-xu3_defconfig, the options has been
already removed.
Note: the bootstage options breaks booting from odroid-u3.
Change-Id: If85a8956ed805f6221619f9462f8d672f48458bf
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Fri, 15 May 2020 07:45:41 +0000 (09:45 +0200)]
cmd: remote obsoleted nfsdown and usbdown commands
Gneric Tizen Downloader based on the DFU framework, provides better
replacement for those commands.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ia0a0ccd5fb7e1b65c12f6c5653015ef7ae05e6be
Marek Szyprowski [Mon, 20 Apr 2020 13:08:30 +0000 (15:08 +0200)]
tizen: replace NFSdown with generic Tizen Download utility (NFS and USB)
Tizen Download utility provides replacement for nfsdown and usbdown
commands, implemented on top of the generic u-boot's DFU framework.
It allows to flash any entity defined in dfu_alt_info, not only the ones
hardcoded in the mentioned commands.
This is useful for flashing only the selected images/entities.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ic4275302442b84dc96a2d7d31188eb3d7143e7ec
Marek Szyprowski [Fri, 15 May 2020 09:20:53 +0000 (11:20 +0200)]
arm: exynos: enable DFU's alt_info support for Tizen downloader
dfu_alt_info env is required for Tizen downloader, so set it correctly on
all Odroid variants.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I3530d3be22b1ed76f4687198064bde3faebd6b37
Marek Szyprowski [Mon, 27 Apr 2020 06:45:02 +0000 (08:45 +0200)]
cmd: add generic Tizen Download (NFS & USB) command
This is a quick replacement of the NFSdown and USBdown commands, rewritten
on top of the generic DFU framework. This removes a few limitation of both
obsoleted commands.
Change-Id: Id8a311eabd2bab7d90aeee6adabbd6461897b4e3
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
[sw0312.kim: remove newline from command name]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 22 May 2020 07:52:18 +0000 (16:52 +0900)]
scripts: tizen: update script version to distinguish
Update script minor version to distinguish.
(from 1.3 to 1.3.1)
- 1.3.1 : Enhance write performcne
Change-Id: If9bbc1cbca22d87bc837d03e60d09a3a0e6c6883
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Marek Szyprowski [Fri, 15 May 2020 10:08:54 +0000 (12:08 +0200)]
net: fix build without NFS or NFS download enabled
Partial NFS download requires setting net_boot_file_{offset,size_limit}
global variables, which are available only when CONFIG_CMD_NFS is set.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I74e2dbb56c2b41078d2e5506bdcba6458299d792
Marek Szyprowski [Fri, 15 May 2020 05:56:24 +0000 (07:56 +0200)]
Fixup "tools:mkimage_multidtb: Align less than PAD size"
Partially revert commit
fe215b2f7ddf30f36b326f7a3fe3734a872a37fe
("tools:mkimage_multidtb: Align less than PAD size"), as it looks that the MFC hack
accidendly sneaked into that commit.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I81c0f4713a83a8e5d888b03fb851e9c673cd1c77
Marek Szyprowski [Mon, 18 May 2020 11:56:34 +0000 (13:56 +0200)]
configs: odroid-xu3: enable NET_RANDOM_ETHADDR for proper USB ethernet support
Odroid XU3 and XU3lite has built-in USB SMSC9512/9514 Ethernet controller, which has no
EEPROM for the board MAC address. Force using random one instead of failing.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ia1024f925d7b692b40cb76ef261e9c1cc8890e7b
Marek Szyprowski [Fri, 15 May 2020 06:29:46 +0000 (08:29 +0200)]
tizen: odroid-xu3: add missing Odroid HC1 support to CONFIG_DFU_ALT_SYSTEM_2
Add missing exynos5422-odroidhc1.dtb to DFU_ALT_SYSTEM_2, selected when ramdisk
partition is available.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie72136e5b63739abe40add42590d30463c09f3c1
Junghoon Kim [Thu, 21 May 2020 03:56:23 +0000 (12:56 +0900)]
scripts: sd_fusing: Increase the block size upon the image flashing
Fine-grained IO degrades the image flashing performance due to the IO
stack overhead. Increase the block size upon the dd operation to improve
the flashing performance.
Change-Id: I937ca401d07045f055d3f55ca9f52a3261ee4fb4
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Mon, 18 May 2020 06:22:47 +0000 (15:22 +0900)]
scripts: sd_fusing_xu4.sh: Improve the image flashing performance
The current dd of the pv combination degrades the flashing performance
due to the pipe overhead and is also bad to see due to the duplicate
output. This can be improved by the use of direct mode with progress
status.
Change-Id: Id682683e892181cc2608d1ba811d4ddb847048da
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Seung-Woo Kim [Thu, 14 May 2020 08:19:36 +0000 (17:19 +0900)]
scripts: tizen: sd_fusing_rpi3: Check dd version for backward compatibility
Before dd version 8.24, "status=progress" option is not supported.
For backward compatibility, check dd version and use the option
only when it is possible.
Change-Id: Ia90668e9cd22bf2906b4b0ecd574bb45ad14fd95
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Junghoon Kim [Thu, 14 May 2020 05:51:00 +0000 (14:51 +0900)]
scripts: tizen: Improve the image flashing performance for RPI family
The current dd of the pv combination degrades the performance due to the
pipe overhead and is also bad to see due to the duplicate output.
It can be resolved by the use of direct mode with progress status. This
reduces the flashing time of platform images by 17.5% in my environment.
Change-Id: I986ce72e0294b6f143ca95419364a0f89f289d74
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>