Age | Commit message (Collapse) | Author | Files | Lines |
|
There are unused variable build warnings made from interactive
charger after rebasing.
Note: When doing rebase, this patch should be squashed into fixed commit.
Change-Id: I3f21899e8c8f349c2ea3d6d341af88b05814198e
Fixes: 5bf0f4c22486 ("trats2: add support to interactive charger")
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[sw0312.kim: add missed pbat]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
To check the time, enable the CMD_TIME configuration.
Change-Id: I4be99bf8b311bf55e6ecf1d74e8d67f47bea8847
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Enable the configurations relevant to nfsdown command for rpi3.
Change-Id: Ic050057e75f4e92b1507ca84c642ba3c798ba6fc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
Odroid HC1 board is based on Odroid XU4 board, but it has no HDMI,
no eMMC, no build-in USB3.0 hub, no extension port pins, and no GPIO
button. USB3.0 ports are used for build-in JMicron USB to SATA bridge
and Gigabit R8152 ethernet chips. HC1 uses only passive cooling.
This patch also updates Odroid's ADCmax array and reduces ADC tolerance
to 1% to ensure that XU4 and HC1 revisions are properly detected.
I've tested this with XU3, XU3-lite, XU4 and HC1 boards. In case of my test
boards I got following values from ADC register: 372, 370, 1281 and 1313.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ia58aec9de0e3d79911188b797562239c5e6daea6
|
|
Change-Id: I3a48b84454eccc1b5382f47930d40fd55f67ac6d
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
|
|
RSTS register allows passing information from OS too bootloader upon
reboot.
Change-Id: I2fa04fa0e63e5c81f78901c06ca8884f7e89f8e8
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
|
|
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>
|
|
'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>
|
|
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>
|
|
If there are no CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION,
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR and CONFIG_SPL_OS_BOOT,
there is unused-function build warning. Add __maybe_unused macro
to remove the warning.
Change-Id: I4c8c8c22c949754a15cd951b5de61896ab341e32
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
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>
|
|
Enable build of spl loading atf and u-boot for raspberry pi 3.
The spl will load u-boot and atf optee image from u-boot.img as
defined CONFIG_SPL_FS_LOAD_PAYLOAD_NAME in header.
Change-Id: I482737666a0d7f446699feefda37f9b467955f4d
Signed-off-by: egukim <egukim@dignsys.com>
|
|
apply SUPPORT_SPL to support spl loading atf on raspberry pi 3
with bcm2835.
Change-Id: I200a2a7673db5eceaf94abb4c68377a1912e00cb
Signed-off-by: egukim <egukim@dignsys.com>
|
|
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>
|
|
During using dwc2 usb gadget, if usb message size is too small,
following cache misaligned warning is shown:
CACHE: Misaligned operation at range [bfdbcb00, bfdbcb04]
Align size of invalidating dcache before starting DMA to remove the
warning.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: cherry-pick form mainline u-boot to fix runtime cache misaligned warning of thor usb gadget on odroid-u3]
Change-Id: I540394b380200a58fd84a426a2d31b64ef1ba542
|
|
So far we were not using the FIT image format to its full potential:
The SPL FIT loader was just loading the first image from the /images
node plus one of the listed DTBs.
Now with the refactored loader code it's easy to load an arbitrary
number of images in addition to the two mentioned above.
As described in the FIT image source file format description, iterate
over all images listed at the "loadables" property in the configuration
node and load every image at its desired location.
This allows to load any kind of images:
- firmware images to execute before U-Boot proper (for instance
ARM Trusted Firmware (ATF))
- firmware images for management processors (SCP, arisc, ...)
- firmware images for devices like WiFi controllers
- bit files for FPGAs
- additional configuration data
- kernels and/or ramdisks
The actual usage of this feature would be platform and/or board specific.
Also update the FIT documentation to mention the new SPL feature and
provide an example .its file to demonstrate its features.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Lokesh Vutla <lokeshvuta@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
[egukim: cherry-pick from mainline to support ATF]
Signed-off-by: egukim <egukim@dignsys.com>
Change-Id: Iae2fd401234c1bebdc9a650dc77ecb065c70547d
|
|
At the moment we load two images from a FIT image: the actual U-Boot
image and the .dtb file. Both times we have very similar code, that deals
with alignment requirements the media we load from imposes upon us.
Factor out this code into a new function, which we just call twice.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Jagan Teki <jagan@openedev.com>
[egukim: cherry-pick from mainline to support ATF]
Signed-off-by: egukim <egukim@dignsys.com>
Change-Id: I5db03011b8bd06edcc95a7d8ff9871d9e38ef7e2
|
|
At the moment we ignore any errors due to missing FIT properties,
instead go ahead and calculate our addresses with the -1 return value.
Fix this and bail out if any of the mandatory properties are missing.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
[egukim: cherry-pick from mainline to support ATF]
Signed-off-by: egukim <egukim@dignsys.com>
Change-Id: I096e7d2fb9da3342994c21a9d341caa4ded2adb1
|
|
Currently the SPL FIT loader always looks only for the first image in
the /images node a FIT tree, which it loads and later executes.
Generalize this by looking for a "firmware" property in the matched
configuration subnode, or, if that does not exist, for the first string
in the "loadables" property. Then using the string in that property,
load the image of that name from the /images node.
This still loads only one image at the moment, but refactors the code to
allow extending this in a following patch.
To simplify later re-usage, we also generalize the spl_fit_select_index()
function to not return the image location, but just the node offset.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Lokesh Vutla <lokeshvuta@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Jagan Teki <jagan@openedev.com>
[egukim: cherry-pick from mainline to support ATF]
Signed-off-by: egukim <egukim@dignsys.com>
Change-Id: I95c4abf492e1c57b91ce18f66b6568ebb7769bb7
|
|
Currently the SPL FIT loader uses the spl_fit_select_fdt() function to
find the offset to the right DTB within the FIT image.
For this it iterates over all subnodes of the /configuration node in
the FIT tree and compares all "description" strings therein using a
board specific matching function.
If that finds a match, it uses the string in the "fdt" property of that
subnode to locate the matching subnode in the /images node, which points
to the DTB data.
Now this works very well, but is quite specific to cover this particular
use case. To open up the door for a more generic usage, let's split this
function into:
1) a function that just returns the node offset for the matching
configuration node (spl_fit_find_config_node())
2) a function that returns the image data any given property in a given
configuration node points to, additionally using a given index into
a possbile list of strings (spl_fit_select_index())
This allows us to replace the specific function above by asking for the
image the _first string of the "fdt" property_ in the matching
configuration subnode points to.
This patch introduces no functional changes, it just refactors the code
to allow reusing it later.
(diff is overly clever here and produces a hard-to-read patch, so I
recommend to throw a look at the result instead).
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Lokesh Vutla <lokeshvuta@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Jagan Teki <jagan@openedev.com>
[egukim: cherry-pick from mainline to support ATF]
Signed-off-by: egukim <egukim@dignsys.com>
Change-Id: I58b26e4090ce22dc2fe0a2e431f10d74dbc8ee7a
|
|
ATF(ARM Trusted Firmware) is used by ARM arch64 SoCs, find more infomation
about ATF at: https://github.com/ARM-software/arm-trusted-firmware
SPL is considered as BL2 in ATF terminology, it needs to load other parts
of ATF binary like BL31, BL32, SCP-BL30, and BL33(U-Boot). And needs to
prepare the parameter for BL31 which including entry and image information
for all other images. Then the SPL handle PC to BL31 with the parameter,
the BL31 will do the rest of work and at last get into U-Boot(BL33).
This patch needs work with patches from Andre for SPL support multi
binary in FIT.
The entry point of bl31 and bl33 are still using hard code because we
still can not get them from the FIT image information.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
[egukim: Cherry-pick the commit bcc1726a7bdd to support ATF]
Signed-off-by: egukim <egukim@gmail.com>
Signed-off-by: egukim <egukim@dignsys.com>
Change-Id: I0a79558fb2759d6576a3dfdd7a7f99e37f424f07
|
|
Add the smsc95xx.macaddr for using the unique macaddr.
Change-Id: I5d74c2d44372ca19d4776c3dd12504f888500748
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
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>
|
|
"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>
|
|
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>
|
|
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>
|
|
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>
|
|
Enable nfsdown command support for odroid-u3.
Change-Id: I395ee791ed4da7ed75f84d4357949641622f2148
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|