Dongwoo Lee [Thu, 5 Apr 2018 05:40:01 +0000 (14:40 +0900)]
rpi: tizen-boot: Add boot parameter for support flash mode
This patch adds support for flash bootmode. If boot-param.bin is set
to 'dwnl', bootmode will be set to flash to invoke flash-init.
Change-Id: I5fe1554c4ad431f6275c0118d25a36e1f3a8ffc4
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Seung-Woo Kim [Tue, 8 May 2018 05:41:32 +0000 (14:41 +0900)]
rpi: tizen-boot: rpi2: set console in cmdline as u-boot environment
The console in cmdline will be used by kernel as printk console
and tizen-boot script always sets console with UART device. Set
console in cmdline as u-boot environment value console and set
default uart if nothing is set.
Change-Id: I36f58c0532e0a10efb7844c14caeb21258c9b792
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 8 May 2018 05:39:09 +0000 (14:39 +0900)]
rpi: tizen-boot: rpi3: set console in cmdline as u-boot environment
The console in cmdline will be used by kernel as printk console
and tizen-boot script always sets console with UART device. Set
console in cmdline as u-boot environment value console and set
default uart if nothing is set.
Change-Id: I0d2743d445de8c8cf4bd43600fbc8c28a07cd0ea
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Mon, 25 Feb 2019 10:57:16 +0000 (19:57 +0900)]
packaging: spec: update u-boot version to v2019.01
Update u-boot version to v2019.01.
- This branch is based on sandbox/jaehoon/rebase-v2018.03.
Change-Id: I100e24eaa361f61b66d3b81e6529e9790c6786b4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 25 Feb 2019 10:38:09 +0000 (19:38 +0900)]
usb: gadget: f_thor: fix wrong type format
Fix wrong type format about buidling wanring.
Change-Id: I161651ffa9427611ef4e095bebca095d6bbf153d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 21 Feb 2019 11:05:45 +0000 (20:05 +0900)]
configs: rpi3: remove redfined configuration
Remove redefined configuration.
Change-Id: If74ca366e22290714ade37763f93a39544aa4ee1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Mon, 8 Oct 2018 09:08:18 +0000 (18:08 +0900)]
configs: rpi3: move CONFIG_SPL_DRIVERS_MISC_SUPPORT option
Move CONFIG_SPL_DRIVERS_MISC_SUPPORT option configs/rpi_3_defconfig
because the option is not in scripts/config_whitelist.txt.
Change-Id: Ia883f5521430a915943dbf00c8043cea6deec1ad
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Fri, 29 Jun 2018 09:35:42 +0000 (18:35 +0900)]
configs: rpi3: enable CONFIG_SPL_ATF configuration
Enable CONFIG_SPL_ATF config and defined ATF_TEXT_BASE in configs/rpi.h.
Change-Id: I24f2115b6386232fb53eb105dcbeffd3495fb55e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Jun 2018 06:44:38 +0000 (15:44 +0900)]
gpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef
Remove the unnecessary CONFIG_SPL_BUILD ifdef.
Change-Id: I6509cecadf17e1daa9c938a4611a1a703cffb373
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Jun 2018 06:35:12 +0000 (15:35 +0900)]
serial: bcm283x: remove the CONFIG_SPL_BUILD ifdef
Remove the CONFIG_SPL_BUILD ifdef to use the pinctrl.
Change-Id: I0685b7fbd15896e991bdb3c68e79554bde67c57f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Jun 2018 05:58:10 +0000 (14:58 +0900)]
configs: rpi3: enable the SPL_PINCTRL config
Enable the SPL_PINCTRL configuration to control the pinctrl.
Change-Id: Ie1dfb37c3d27b33f894521dd2ae5907f78bcccdb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Jun 2018 05:28:07 +0000 (14:28 +0900)]
configs: rpi3: move the SPL_BOARD_INIT into defconfig
Move the SPL_BOARD_INIT configuration into defconfig.
Change-Id: I81b10c1224a0725b78d478bd252a1a9f8735532a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Mon, 4 Jun 2018 07:04:51 +0000 (16:04 +0900)]
cmd: add missing line breaks for pr_err()
After the commit
9b643e312d52 ("treewide: replace with error() with
pr_err()"), there are some pr_err() with no line break. Add missing
line breaks.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: cherry-pick from mainline to fix error log]
Change-Id: I8aa616cb4c1e6d4ab250ba89cb75214f33488a6f
Seung-Woo Kim [Fri, 25 May 2018 05:21:01 +0000 (14:21 +0900)]
gadget: f_thor: Fix memory leaks of usb request and its buffer
There are memory leaks of usb request and its buffer for ep0,
in_ep, and out ep. Fix memory leaks of usb request and its buffer.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: fix conflict about int_ep from thor_eps_setup()]
Change-Id: I606d039d53847d0e0850c5bcbceca451bdbb1c02
Jaehoon Chung [Tue, 8 May 2018 10:57:15 +0000 (19:57 +0900)]
packaging: change from 'env' to 'envtools' for building envtool
Change a name from "env" to "envtools" for building envtools.
(Fix the compile error during obs/gbs system.)
Change-Id: I5717142528d88993134f1219dba2bb0a7e928efe
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 8 May 2018 10:09:20 +0000 (19:09 +0900)]
packaging: change from env_common to built-in for generating param.bin
environemnt codes had moved to env directory from common.
It's changed to get the default environment from build-in.o.
Change-Id: I15f8c0115fab426ed35547e0063d3361385d1712
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 8 May 2018 02:28:06 +0000 (11:28 +0900)]
configs: tizen: remove the unused configurations
Remove the unused configurations.
(CONFIG_UHB_HCI is replaced to CONFIG_USB_EHCI_HCD.)
Change-Id: I132d04517193544523230429dd6d373725ea32f2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Tue, 8 May 2018 02:09:20 +0000 (11:09 +0900)]
rpi3: fix the spl build error
Fix the spl build error.
This is a workaround for building a rpi3 spl image.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 3 May 2018 12:09:10 +0000 (21:09 +0900)]
packaging: change the version infomation from 2017.03 to 2018.03
Upadte the U-boot version information to v2018.03.
Change-Id: I357b173a68f80b9879e2e9acc9c665df30e7e9d9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 3 May 2018 11:56:46 +0000 (20:56 +0900)]
configs: rpi: remove the CONFIG_SPL_FRAMEWORK
Remove the CONFIG_SPL_FRAMEWORK config in include/configs/rpi.h.
Change-Id: Iff3f2740ddaaa4be16766e66cea29eca140dee02
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 3 May 2018 11:54:22 +0000 (20:54 +0900)]
cmd: nfsdown: support the nfsdown when CONFIG_BLK is enabled
If CONFIG_BLK is enabled, it means that device driver is using the
driver-model.
Change-Id: I235deb6208c558a6584560e1638d05f93ac795aa
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 3 May 2018 07:22:20 +0000 (16:22 +0900)]
Revert "bootstage: Require timer_get_boot_us() to be defined"
This reverts commit
c87dc38d8f860710f5f624d9dae6cefded285b8d.
(This revert is workaround.)
Change-Id: I8febf78aa41f1124775359278380fbb35d9dcc4b
Jaehoon Chung [Wed, 2 May 2018 11:16:24 +0000 (20:16 +0900)]
configs: remove the duplicated configurations
Remove the duplicated configurations.
It needs to define the CONGIT_SYS_TEXT_BASE in configs/tizen_defconfig.
Change-Id: I77137e03580020e211d3286fac8d8da6f82829b0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 3 May 2018 04:05:48 +0000 (13:05 +0900)]
configs: tizen: enable the CONFIG_USB_EHCI_HCD config
Enable the CONFIG_USB_EHCI_HCD config.
Change-Id: Id51d97fac39a180eebc871f57a04dc8a71795afc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 3 May 2018 02:41:52 +0000 (11:41 +0900)]
board: samsung: fix the compile error with tizen_defconfig
Fix the compile error during rebase on v2018.03.
Change-Id: I6207c86b495cb064591bd6d9dec8a0ef1ef527e9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 12 Feb 2018 06:08:18 +0000 (15:08 +0900)]
configs: rpi_3: enable the CMD_TIME configuration
To check the time, enable the CMD_TIME configuration.
Change-Id: I4be99bf8b311bf55e6ecf1d74e8d67f47bea8847
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 12 Feb 2018 05:47:19 +0000 (14:47 +0900)]
config: rpi3: enable the configurations relevant to NFSDOWN
Enable the configurations relevant to nfsdown command for rpi3.
Change-Id: Ic050057e75f4e92b1507ca84c642ba3c798ba6fc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 12 Feb 2018 05:48:28 +0000 (14:48 +0900)]
cmd: nfsdown: add the update_image_names for rpi3
RPi3 has the names of different file with other exynos boards.
Add the update_image_names for rpi3.
Change-Id: I133f8eb65279629b912aab3715101b46cbf16b4d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Tue, 23 Jan 2018 01:34:57 +0000 (10:34 +0900)]
rpi: tizen-boot: add rpi2 script
Add rpi2 tizen-boot script.
For rpi2, serial console is different from rpi3.
Change-Id: I4548468a3c052361b389be0fb6bdee72187b5e33
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 23 Jan 2018 01:31:45 +0000 (10:31 +0900)]
rpi: tizen-boot: add rpi3 32bit script
Add rpi3 32bit tizen-boot script.
For 32bit, kernel dt image should be loaded to $fdt_addr instead of
$fdt_addr_r and kernel image name is zImage instead of Image. Also,
boot command should be bootz instead of booti.
Change-Id: Ia7a942837dd7a9ed398567f82aa89a81784a7591
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 23 Jan 2018 01:24:23 +0000 (10:24 +0900)]
rpi: tizen-boot: Rename tizen-boot script for rpi3
The tizen-boot script is for rpi3 64bit mode. Rename the script for
rpi3 to support other rpi board family.
Change-Id: Ic05c2bf94deb9381460c0de4e4a31a31c8f615b6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Mon, 15 Jan 2018 07:48:21 +0000 (16:48 +0900)]
rpi: tizen-boot: add note about kernel size limitation.
There is kernel size limitation to support ramdisk. Add note
about the size limitation.
Change-Id: I77366008ee2a3649b9d9c366c756206784c240cb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Thu, 11 Jan 2018 04:54:20 +0000 (13:54 +0900)]
rpi: tizen-boot: change the kernel loading address
Tizen kernel image can be over than 16MB.
It should be overlapped with other image address.
To avoid this behavior, change to 0x02d00000 from 0x01000000.
Change-Id: I8cf142c55d6afedd1186f58181251df39d1e9cc5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Thu, 11 Jan 2018 03:51:51 +0000 (12:51 +0900)]
scripts: tizen: call sync before umount
After writing files on mounted directory, umount can fail with busy
state. Call sync before umount to clear the busy state instead of
sleep.
Change-Id: I7985ab3688a64b072c9a992957acdf124f925a34
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 9 Jan 2018 05:39:57 +0000 (14:39 +0900)]
rpi: tizen-boot: Add earlycon option to bootargs
Add earlycon option to show early uart message. Also, remove
unnecessary earlyprintk option in bootargs.
Change-Id: Ie0d88914b7ee5bbd2bf7a67db37b772b1a937454
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Mon, 6 Nov 2017 10:41:58 +0000 (19:41 +0900)]
arm: bcm283x: bcm283x-board-spl: display the SPL version
Remove the unuseful log message.
Instead, display the SPL version for providing the build information.
Change-Id: Ibe877ec03fb73a5c0027c3db579344d839d19acc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Fri, 3 Nov 2017 09:33:39 +0000 (18:33 +0900)]
spl: serial_bcm283x: remove unnecessary gpio setting
The config.txt has enable_uart=1 option, so bootcode.bin will set
register to enable uart, so spl of rpi3 does not need to set uart
register. Remove the unnecessary setting to remove garbage in uart
rx.
This fixes unexpected hang-up on u-boot prompt without connection
uart to serial console.
Change-Id: I813b4304e434c0f3d51d06078b38d09adb7b993d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 2 Nov 2017 07:08:18 +0000 (16:08 +0900)]
Revert "spl: serial_bcm283x: set GPIO before enabling uart to remove rx"
This reverts commit
d1dac2248ae24ba833069679734f966f0e481b5a.
The commit fixes hang on u-boot console with serial connection, but
it blocks all serial rx communication, so it is not possible to send
any command via uart. So reverting it and the original issue will be
handled later.
Change-Id: I216375c8bbfcbd47b960182bfcd79d452d32e1f8
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
r.tyminski [Mon, 30 Oct 2017 11:56:18 +0000 (12:56 +0100)]
spl: serial_bcm283x: set GPIO before enabling uart to remove rx
There was some garbage on uart input during boot, so if uart wasn't
connected, we end up in u-boot command line.
Set GPIO before enabling uart to remove uart Rx setup and this makes
SPL use only Tx.
Note: Chip documentation warns that order of commands is important.
Change-Id: I896d8b719c7b9170ad481767f8b27835d81f4af1
Signed-off-by: Rafal Tyminski <r.tyminski@partner.samsung.com>
[sw0312.kim: adjust commit-msg]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 17 Oct 2017 10:12:15 +0000 (19:12 +0900)]
configs: odroid_xu3: add missing CONFIG_MMC_DEFAULT_DEV
For dfu/thordown command, default mmc device number should be set
as CONFIG_MMC_DEFAULT_DEV. Add the missing CONFIG_MMC_DEFAULT_DEV.
Note: before this patch, CONFIG_MMC_DEFAULT_DEV string itself is
used for parsing mmc device number and anyway it was parsed as 0.
Change-Id: I233c59f810acf37ace57abed99f30c1897595d2b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Fri, 29 Sep 2017 11:49:31 +0000 (13:49 +0200)]
configs: odroid-xu3: remove bootstage support
Bootstage slows down boot and sometimes shows message "bootstage: Failed
to add to device tree", which confuses users.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I1134f440d006506ab9fbdc4cbc1cddb61eb31c6c
Łukasz Stelmach [Mon, 16 Oct 2017 08:43:12 +0000 (10:43 +0200)]
rpi: support flashing an image of the INFORM partition
Change-Id: I3a48b84454eccc1b5382f47930d40fd55f67ac6d
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 10 Oct 2017 11:11:54 +0000 (13:11 +0200)]
rpi: Read the value of RSTS register
RSTS register allows passing information from OS too bootloader upon
reboot.
Change-Id: I2fa04fa0e63e5c81f78901c06ca8884f7e89f8e8
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Thu, 21 Sep 2017 08:20:38 +0000 (10:20 +0200)]
rpi: tizen-boot: enable runtime customisation of bootargs with ${opts}
Facilitate development of kernel and low level system components, by
making it easier for developers to add kernel command line arguments
via the ${opts} u-boot environment variable.
Change-Id: I4883cc5d29e4edaaa9ed17a3801808672ad66661
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Jaehoon Chung [Fri, 22 Sep 2017 15:48:47 +0000 (00:48 +0900)]
rpi: tizen-boot: remove the ramdiskdev variable
'ramdiskdev' can be replaced to 'mmcrootdev'.
It should be used the same device.
Change-Id: I9951f955e591a9761fba537b282fa4748d5dc2f5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Junghoon Kim [Thu, 14 Sep 2017 11:57:24 +0000 (20:57 +0900)]
rpi: tizen-boot: modify the parameter check logic
Modify the parameter check logic to support all cases of reboot commands
including "reboot", "reboot fota", "reboot recovery", and undefined reboot
parameter.
Change-Id: I00c7cec03bdd8d9364bda3e8c7142a76ed9b4bd9
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
egukim [Tue, 12 Sep 2017 08:33:00 +0000 (17:33 +0900)]
packaging: add spl-atf and u-boot raw files
Add spl-atf file, u-boot-spl.bin and u-boot raw files including
fit_spl_atf.its, u-boot-nodtb.bin, and bcm2873-rpi-3-b.dtb.
To make fit style image from fit_spl_atf.its, it should run mkimage
with proper optee.bin.
In Tizen RPI 3 image case, this will be done from mic kickstarter.
Change-Id: Ie0ec56b211c198af57da10b971a90ffb2acb9c52
Signed-off-by: egukim <egukim@dignsys.com>
egukim [Mon, 4 Sep 2017 06:37:09 +0000 (15:37 +0900)]
ARM: bcm283x: apply SUPPORT_SPL
apply SUPPORT_SPL to support spl loading atf on raspberry pi 3
with bcm2835.
Change-Id: I200a2a7673db5eceaf94abb4c68377a1912e00cb
Signed-off-by: egukim <egukim@dignsys.com>
egukim [Mon, 4 Sep 2017 05:25:30 +0000 (14:25 +0900)]
spl: implement spl-atf on raspberry 3 b
add implementation of spl-atf on raspberry 3 b board to support
atf optee secure world.
To execute u-boot-spl.bin, it should append built binary from
head.S to u-boot-spl.bin as binary header.
Change-Id: I74883a9e7d7476f9f814660b74a5e68d953aff1b
Signed-off-by: egukim <egukim@dignsys.com>
Jaehoon Chung [Wed, 30 Aug 2017 08:39:04 +0000 (17:39 +0900)]
rpi3: tizen-boot: Add the ethernet macaddr
Add the smsc95xx.macaddr for using the unique macaddr.
Change-Id: I5d74c2d44372ca19d4776c3dd12504f888500748
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Wed, 23 Aug 2017 09:22:22 +0000 (18:22 +0900)]
rpi3: tizen-boot: remove duplicated kernel image loading
There are unnecessary duplicated kernel image loading steps in
tizen-boot script. Remove the duplicated loading.
Change-Id: I9f6b98f870dcfb5503513e3ca481335531fc0b96
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Fri, 11 Aug 2017 13:23:16 +0000 (22:23 +0900)]
rpi3: tizen-boot: Disable to display the log from HDMI
"console=tty1" is provided that displayed the log from HDMI.
After finishing the kernel booting, it should not be displayed from HDMI.
(when applied this patch.)
There is no requirement about using HDMI serial log.
Disable the log from HDMI.
Change-Id: I7c6576ba15f6a183ab8c82ca5b2114f9cc1e604c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 8 Aug 2017 06:14:03 +0000 (15:14 +0900)]
rpi: tizen-boot: add the 'ramdisksize' as 12MB for ramdisk-recovery
Size of Ramdisk-recovery is 12MB.
It needs to load the 12MB, not 8MB.
Add the 'ramdisksize' as 12MB for ramdisk-recovery.
Change-Id: Idc9111a5b0d7ef150376ee241d39129e114ce368
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 7 Aug 2017 07:22:50 +0000 (16:22 +0900)]
configs: tizen: enable the CONFIG_NET_RANDOM_ETHADDR
To use the random macaddr, enable the CONFIG_NET_RANDOM_ETHADDR in
tizeh.h.
In future, it needs to move into configs/tizen_defconfig.
Change-Id: I47ef585a78b06f0ac334fc52e4400140392231cc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Thu, 3 Aug 2017 09:38:13 +0000 (18:38 +0900)]
cmd: usbdown: fix build error without CONFIG_SET_DFU_ALT_INFO
If CONFIG_SET_DFU_ALT_INFO is not set, there is build error. Fix
the build error with moving dfu related variables and macros to
inside of the config defined area.
Change-Id: Ife977d8cc4da8e3d84a53c8e9cb27280e80d1464
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 2 Aug 2017 10:26:56 +0000 (19:26 +0900)]
tizen: enable nfsdown command support
Enable nfsdown command support for odroid-u3.
Change-Id: I395ee791ed4da7ed75f84d4357949641622f2148
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 2 Aug 2017 10:21:46 +0000 (19:21 +0900)]
tizen: enable usb host ethernet support
Enable usb host ethernet support from tizen config for odroid-u3.
NOTE: to use ethernet card on odroid-u3, it is required to set
usbethaddr on u-boot env.
Change-Id: Ic92f74b45c291ba61efd6630450f050ed3a6909c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 2 Aug 2017 10:13:41 +0000 (19:13 +0900)]
tizen: add default dfu macro for nfsdown
The nfsdown without CONFIG_DFU_ALT_SYSTEM causes build error.
Add default dfu macro, CONFIG_DFU_ALT_SYSTEM to tizen.h to support
nfsdown on odroid-u3 family boards.
Change-Id: I716b9235f1b40f4d3b0b19a75ccf67e73375acea
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 2 Aug 2017 10:09:53 +0000 (19:09 +0900)]
cmd: nfsdown: add image file name as optional argument
The nfsdown command takes too much time because it tries to get
all possible image files. Add image file name as optional argument.
With the optional argument, nfsdown command will get only the file
and it reduces time consumption for case of flashing one file.
Change-Id: If2995d128c219d100074153ba00be3f4dc5ee1e6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 2 Aug 2017 10:04:23 +0000 (19:04 +0900)]
cmd: nfsdown: fix memory corruption with global memory free
Calling free() for result of getenv() causes memory corruption
because getenv() returns global memory area. Fix the corruption
with copying result of getenv() because parsing it with strtok()
changes the string.
Change-Id: I21374e7d622b603de9f8d3d036561d00b1e26c23
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 2 Aug 2017 09:34:08 +0000 (18:34 +0900)]
cmd: nfsdown: update usage description
The nfsdown has optional argument part for server ip address and
precondition to use nfs command but it is not described from command
usage. Update nfsdown usage description with required steps and
optional argument part.
Change-Id: I16e941ef386e1301f4e1581956e1b0b06dc33246
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Thu, 3 Aug 2017 07:47:23 +0000 (16:47 +0900)]
scripts: sd_fusing_rpi3: add the sleep before umounting
When umounting "mnt_tmp", it's appeared "device is busy".
To ensure the unmounting, add the "sleep 1" before unmounting.
Change-Id: Ibab0700f7ef112591576b53c5706b8f850821742
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Junghoon Kim [Tue, 25 Jul 2017 06:36:18 +0000 (15:36 +0900)]
rpi: tizen-boot: check reboot parameter to determine booting mode
The "reboot-param.bin" file is used for passing reboot parameter. For
example, the word "upgr" means that target should be booted with upgrade
mode.
Check the contents of "reboot-param.bin" file to determine booting mode.
Change-Id: I62a6598f84c677c251df3559da9dd58a545e859c
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Wed, 26 Jul 2017 05:22:33 +0000 (14:22 +0900)]
scripts: sd_fusing_rpi3.sh: add inform partition support
To implement Tizen upgrade solution, reboot parameter should be
delivered into u-boot so that u-boot can jump to proper partition. But,
new SoC on RPI3 does not support any specific registers (e.g., INFORM
register of Exynos) to store reboot parameter upon SW reset.
Add inform partition and make "reboot-param.bin" file for passing reboot
parameter.
Change-Id: Ic98df1b4ad4aeab9152d3ad5007b97a0e20d8be7
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Seung-Woo Kim [Wed, 26 Jul 2017 02:18:55 +0000 (11:18 +0900)]
tizen: add default dfu macros
There is CONFIG_SET_DFU_ALT_INFO, but CONFIG_DFU_ALT_BOOT_EMMC is not
set, and it causes build error for usbdown and nfsdown commands.
Add default dfu macros, CONFIG_DFU_ALT_BOOT_EMMC and
CONFIG_DFU_ALT_BOOT_SD to tizen.h which is used odroid-u3 family and
trats2 boards.
The usbdown and nfsdown commands are only possible on odroid-u3
family boards, so default dfu macros are set as odroid dfu macro.
Change-Id: Ic6ea1549492a073b6434e20f7ffcf329475f6670
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 26 Jul 2017 01:53:06 +0000 (10:53 +0900)]
exynos4-dt: fix build error caused by rebase
There are build errors, caused by rebase, with not defiend macro and
not matched function definition with specific config options.
Replace with proper macro and add proper build macro check for pmic
fuinctions to fix the build errors.
Change-Id: Id5e2cf5b87681af22cc362c67262545457130280
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 25 Jul 2017 05:29:47 +0000 (14:29 +0900)]
cmd: usbdown: use full path of loaded file for writing fat part
The update command to FAT partition has wrong file load command
with file name without path which causes reading failure always.
Use full path of loaded file instead of file name for the case
of writing fat partition.
Change-Id: Iee12f440bd4539c5c7a2ec8d197f067ce1fe34d3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 25 Jul 2017 05:20:23 +0000 (14:20 +0900)]
cmd: usbdown: handle error of file load command during update
The error of file load command from usb storage during update command
is not handled, so wrong data is stored in the file for the case.
Handle error of file load command during update not to store
bad file.
Change-Id: I4c7338eaea538e656ef52ce8c7214f71d0089b4a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 25 Jul 2017 06:30:02 +0000 (15:30 +0900)]
cmd: usbdown: remove memory leak on usbdown_get_alt()
The string name_bkp is duplicated but never deallocated and it
causes memory leak. Remove the memory leak on usb_don_get_alt()
with adding goto label 'out' which calls free.
Change-Id: Iae5a111c3ca4e6e81526374daa06e8be1f6de252
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 27 Jul 2017 03:13:22 +0000 (12:13 +0900)]
cmd: usbdown: remove overflow possiblity on fill_entity_usbdown()
The file name parsed from dfu_alo_info can be longer than NAME_SIZE,
so strcpy function has possiblity of overflow.
Remove the possible overflow using strncpy with less length than
NAME_SIZE.
Change-Id: Ib70f539a810e553136421c7faa576144811c3112
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Junghoon Kim [Wed, 26 Jul 2017 05:18:49 +0000 (14:18 +0900)]
scripts: sd_fusing_rpi3.sh: fix typo in ramdisk-recovery partition
Fix typo in ramdisk-recovery partition description.
Change-Id: Iaecd73bd2443ed30484159d69f9b90e44ea8966b
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Jaehoon Chung [Tue, 25 Jul 2017 02:02:04 +0000 (11:02 +0900)]
scripts: tizen: move the fusing scripts to tizen directory
Move the tizen specific scripts to tizen directory.
Change-Id: I50f004ac078cd7f610e78d668acc94f2aa6b5e0e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 25 Jul 2017 01:59:18 +0000 (10:59 +0900)]
scripts: rpi3: add the fusing script for rpi3
Add the fusing script for rpi3.
Move from kernel git repository to u-boot repository.
Change-Id: I12d83aa9f5347fb07b4e4bd04471fa800cea9e8d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Wed, 19 Jul 2017 05:03:57 +0000 (14:03 +0900)]
cmd: usbdown: add ramdisk.img file
For Tizen 4.0, new ramdisk.img file is added but usbdown command
does not support the file. So add ramdisk.img into usbdown file
list.
Change-Id: Ib3d4a17e34ca9c1089923c80c448fc929e8d437c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Junghoon Kim [Tue, 11 Jul 2017 02:14:26 +0000 (11:14 +0900)]
scripts: odroid-xu4: add ramdisk.img flashing support
In Tizen 4.0, "ramdisk.img" is added in the platform snapshots.
For that reason, this patch supports "ramdisk.img" flashing so that
u-boot can be jumped to initrd instead of rootfs.
Change-Id: Id80d62c9b53190812d5b5dc699729459515b68a1
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Tue, 11 Jul 2017 02:06:05 +0000 (11:06 +0900)]
scripts: odroid-xu4: remove non-necessary FUSE struct
This patch removes non-necessary fusing header struct and also aligns the xu4
downloader with xu3.
Change-Id: If434cece21d38854aa7906e1b85c8d2215a3756b
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Tue, 11 Jul 2017 00:58:24 +0000 (09:58 +0900)]
scripts: odroid-xu4: support new version of sfdisk
In 2.26.0 and later versions of sfdisk, the input data needs to contain
multipliers (MiB) instead of "--unit" option.
For this, This patch fixes sfdisk command to support all versions.
Change-Id: I08e0e02c528d281dafc1a474a839cd4e3baf66e4
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Fri, 7 Jul 2017 06:42:59 +0000 (15:42 +0900)]
scripts: odroid-xu4: add microSD fusing script
This script allows us to make partition for Tizen 3.0 and also to flash Tizen
boot/platform images.
Change-Id: Id09c61be993155818b799dca325e1a0996bfcbc4
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Jaehoon Chung [Thu, 6 Jul 2017 02:13:20 +0000 (11:13 +0900)]
rpi: tizen-boot: check whether there is an init file in sbin directory
Check the "init" file in sbin directory.
If there is the "init" file, it should be ramdisk image.
Change-Id: Ic827f42c783668832f7d9201132fee0185d953c5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 28 Jun 2017 11:46:00 +0000 (20:46 +0900)]
rpi: tizen-boot: support the booting without ramdisk image
If there is not ramdisk image, target can't be booted.
This modification is supported that target can be booted anyway.
NOTE: Assume that ramdisk partition has "sbin".
If want to mount the MMC device, you have to clear the ramdisk
partition.
Change-Id: Ibae4fd7216d0aa7ca11e92842c099dfc5212b714
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Tue, 20 Jun 2017 05:09:36 +0000 (14:09 +0900)]
Revert "packaging: u-boot: build only u-boot-tools for arm64"
This reverts commit
c5bc33d34714a936013cdfedf30800e9d4d4a890.
Now, u-boot tools for arm64 is built from u-boot-rpi3.spec, so it
is not required to build from this spec file.
Change-Id: Ic5d6f9caef8ec31cbce88bbb79e6e4305d9896e3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Gonzha Dmitriy Evgenevich [Wed, 31 May 2017 18:33:59 +0000 (21:33 +0300)]
Turn off ASan build
Turn off ASan in case of ASan build for u-boot, u-boot-xu3
and u-boot-rpi3 packages
Change-Id: I1a3714f47eb14da53fac8a14e179d90ffa416b7f
Jiho Chu [Thu, 25 May 2017 10:36:06 +0000 (19:36 +0900)]
cmd: nfsdown: support FAT type image
Add function to support FAT type image update, especially
for ramdisk.img. It will download image from nfs server,
and update using fatwrite command.
Change-Id: I8d65a266137f1e6b15899662bb907998ae084879
Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
Jaehoon Chung [Thu, 20 Apr 2017 03:42:46 +0000 (12:42 +0900)]
packaging: add the u-boot-rpi3 spec file
To build the u-boot for rpi3, add the u-boot-rpi3 spec file.
This spec file should be built to arm64 processor.
Change-Id: I0088cf6a58169e84034a321fdf0ee99904bce997
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 27 Mar 2017 09:36:16 +0000 (18:36 +0900)]
script: add the boot_script for rpi3
Add the boot_script for rpi3.
It will load this boot script from ditro_bootcmd.
Usage:
$./tools/mkimage -A arm64 -T script -C none -n "Tizen RPI3 u-boot helper"
-d ./board/raspberrypi/rpi/tizen-boot.scr ./boot.scr.uimg
Change-Id: Ia468ee8ce4368c3776b8b9b48fb0d91c1d01db08
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Fri, 14 Apr 2017 04:43:52 +0000 (13:43 +0900)]
TPL: TM2: config: fix to use large memory for kernel decompression
TM2 kernel with KASAN and UBSAN is larger than 48MB, so this patch
fixes memory for kernel decompression to 130MB.
Change-Id: Ib8e52b15164a2dd83c42f47a76a3c5c3bcdb2ffa
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 14 Apr 2017 04:40:52 +0000 (13:40 +0900)]
TPL: TM2: config: disable PSCI_RESET
The config PSCI_RESET is enabled by default for armv8, but TM2 TPL
does not support PSCI, so it should be disabled for reset command.
Change-Id: I56b8b5f6d77ca39018b14cc024ae5c27ea9d0e64
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Wed, 12 Apr 2017 04:27:20 +0000 (13:27 +0900)]
packaging: change the URL information
Current URL is for tizen.rog.
Change to mainline u-boot URL. This code is taken from mainline u-boot.
Change-Id: Id097d3e08547f51003ef5f5a046d96e589fc5a6a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 12 Apr 2017 03:59:22 +0000 (12:59 +0900)]
packaging: update the version information to v2017.03
Update the u-boot version information to v2017.03 from v2016.03
This branch had been rebased on u-boot v2017.03.
Change-Id: Id0fd8313353191b20c4b8f9a2e4b547f4962fa8c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 10 Apr 2017 10:39:51 +0000 (19:39 +0900)]
net: nfs: fix the regression when nfs_read_reply() is called
When nfs_read_reply() is called, it should be stucked in memcpy().
size of rpc_pkt.u.reply() might be too bigger.
Change from 'sizeof(rpc_pkt.u.reply)' to 'len'.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Mon, 10 Apr 2017 11:14:02 +0000 (20:14 +0900)]
TPL: TM2: f_thor: fix wrong size caused by casting s32 to u64
Currently, in arm64 environment, thor download for a file more than
2GB size is failed because requested file size is not properly set.
It is because of assignment of a signed value to a bigger unsigned
type for the size of a file. So this patch fixes wrong size casting.
This also fixes to print debug information about the requested file
size with casted variable.
Change-Id: Id0e67035be05b0df346a8bb0ea17b5ba3e40e8f2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jiho Chu [Thu, 9 Feb 2017 07:28:59 +0000 (16:28 +0900)]
configs: odroid_xu3: enable CONFIG_CMD_NFS_DOWNLOAD
Enable CONFIG_CMD_NFS_DOWNLOAD to use nfs update feature.
Change-Id: I4a9f2e312dd659316feef23dfa029bf594b798f4
Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
Jiho Chu [Thu, 2 Feb 2017 01:47:40 +0000 (10:47 +0900)]
cmd: nfsdown: support nfsdown command for Tizen
nfsdown feature:
- enable USB start if CONFIG_CMD_USB and CONFIG_USB_HOST_ETHER enabled
- connect to nfs server
- download & update Tizen FW according to DFU info
Change-Id: I5d0696b051a8b770349bf28b19735f67b3b089d4
Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
Seung-Woo Kim [Wed, 15 Feb 2017 03:58:58 +0000 (12:58 +0900)]
tizen: add ramdisk.img file to odroid-u3 partition mapping information
To support flashing ramdisk.img on Odroid-U3 family, this patch adds
its partition mapping information.
Change-Id: Ie586496dfb5860cb4f682f0fd30d16af3fe3c840
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Thu, 9 Feb 2017 10:06:39 +0000 (19:06 +0900)]
samsung: platform_boot: add ramdisk booting about autoboot
If it needs to boot from ramdisk, root device must be /dev/ram0.
But current root device is hard-coding as /dev/mmcblk0p2.
When there is ramdisk image, set to root=/dev/ram0.
Otherwise maintain the current root device(root=/dev/mmcblk0p2).
After this patch, tizen can use the raw ramdisk image without any
converting.
This patch is also maintaining backward compatibility about not using
ramdisk.
Change-Id: I5463cfc8067cfe2f7c591ba689269c8d8ea51a0c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Dongwoo Lee [Thu, 24 Nov 2016 04:40:39 +0000 (13:40 +0900)]
usb: xhci-exynos5: Disable USB 3.0 port for host mode
xhci driver have not been completely implemented, so the controller
cannot recognize the USB 3.0 device when it is connected to xhci-hosted
port. This patch disable USB 3.0 port of xhci host, then super-speed
devices can be recognized as at least high-speed devices.
Change-Id: I6100f6c441993ae882db371d880a457cdcde4ae5
Reported-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Seung-Woo Kim [Mon, 14 Nov 2016 08:40:17 +0000 (17:40 +0900)]
packaging: remove profile and target macro usage
For OBS build, build environment will be unfified, so profile macro
or target macro are not valid anymore, so this patch removes the
macros.
Change-Id: If1555b3b7582372e5ca9070825a5f537d34d89c2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Mon, 14 Nov 2016 07:05:05 +0000 (16:05 +0900)]
packaging: squash patches from upstream to HEAD~10
This patch fixes to squash patches from upstream to HEAD - 10
patches into only one patch. This can reduce too many patch files
in source package.
Change-Id: Ie7bc3ef1ca8fb4406d74f9b7dcffdcdef26b8ca5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Dongwoo Lee [Mon, 7 Nov 2016 05:34:15 +0000 (14:34 +0900)]
usb: xhci: Limit transfer length of a single TD
This is workaround solution for timed out error and babble error while
transfering data exceeding 0x3F01FF bytes on xhci host. Actually, this
size equals to value that the maximum number of TRBs per TD times the
maximum size of transfer buffer on TRB. Thus, huge transfer request is
splitted in order to limit the size of data in a single TD.
Even though the single I/O request is splitted into multiple requests,
the transfer speed has affected insignificantly: 22.6 --> 22.3 MiB/s.
Change-Id: I85a17910587b70807f075dd40634a0da817cea2f
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Seung-Woo Kim [Thu, 27 Oct 2016 02:38:56 +0000 (11:38 +0900)]
cmd: usbdown: pass through for nonexistent files
After changing error value of update command with the commit f388818
("cmd: usbdown: fix return value for cmd funtions"), the usbdown
command stopped if there is nonexistent file. So this patch makes
usbdown command pass through for nonexistent files.
Change-Id: If1c53c1fca7879b2ed95a2298463eb7498f7b169
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>