summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-04-23trats2: fix unused variable warnings made from interactive chargerJaehoon Chung1-0/+2
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>
2018-02-19configs: rpi_3: enable the CMD_TIME configurationsubmit/tizen/20180220.000957accepted/tizen/unified/20180220.064200Jaehoon Chung1-0/+1
To check the time, enable the CMD_TIME configuration. Change-Id: I4be99bf8b311bf55e6ecf1d74e8d67f47bea8847 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2018-02-19config: rpi3: enable the configurations relevant to NFSDOWNJaehoon Chung2-0/+25
Enable the configurations relevant to nfsdown command for rpi3. Change-Id: Ic050057e75f4e92b1507ca84c642ba3c798ba6fc Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2018-02-19cmd: nfsdown: add the update_image_names for rpi3Jaehoon Chung1-0/+12
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>
2018-01-23rpi: tizen-boot: add rpi2 scriptSeung-Woo Kim1-0/+84
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>
2018-01-23rpi: tizen-boot: add rpi3 32bit scriptSeung-Woo Kim1-0/+84
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>
2018-01-23rpi: tizen-boot: Rename tizen-boot script for rpi3Seung-Woo Kim2-1/+1
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>
2018-01-15rpi: tizen-boot: add note about kernel size limitation.Seung-Woo Kim1-0/+4
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>
2018-01-11rpi: tizen-boot: change the kernel loading addresssubmit/tizen/20180112.052251accepted/tizen/unified/20180112.073237Jaehoon Chung1-2/+8
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>
2018-01-11scripts: tizen: call sync before umountSeung-Woo Kim2-1/+2
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>
2018-01-10rpi: tizen-boot: Add earlycon option to bootargsSeung-Woo Kim1-1/+1
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>
2017-11-06arm: bcm283x: bcm283x-board-spl: display the SPL versionsubmit/tizen/20171207.090727submit/tizen/20171207.072626accepted/tizen/unified/20171208.062143Jaehoon Chung1-2/+2
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>
2017-11-03spl: serial_bcm283x: remove unnecessary gpio settingtizen_4.0.IoT.p2_releasesubmit/tizen_4.0/20171106.082447submit/tizen/20171106.082505accepted/tizen/unified/20171106.162858accepted/tizen/4.0/unified/20171106.162923Seung-Woo Kim1-20/+4
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>
2017-11-02Revert "spl: serial_bcm283x: set GPIO before enabling uart to remove rx"submit/tizen_4.0/20171102.071416submit/tizen/20171102.071401accepted/tizen/unified/20171103.162237accepted/tizen/4.0/unified/20171102.140322Seung-Woo Kim1-6/+6
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>
2017-10-31spl: serial_bcm283x: set GPIO before enabling uart to remove rxsubmit/tizen_4.0/20171101.031710submit/tizen/20171031.014243accepted/tizen/unified/20171031.055649accepted/tizen/4.0/unified/20171101.064818r.tyminski1-6/+6
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>
2017-10-17configs: odroid_xu3: add missing CONFIG_MMC_DEFAULT_DEVtizen_4.0.m2_releasesubmit/tizen_4.0/20171018.060355submit/tizen_4.0/20171018.024233submit/tizen/20171018.024341accepted/tizen/unified/20171018.165213accepted/tizen/4.0/unified/20171018.231720Seung-Woo Kim1-0/+3
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>
2017-10-17configs: odroid-xu3: remove bootstage supportMarek Szyprowski1-3/+0
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
2017-10-17ARM: Samsung: Add Exynos5422 Odroid HC1 supportMarek Szyprowski4-10/+25
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
2017-10-16rpi: support flashing an image of the INFORM partitionsubmit/tizen_4.0/20171017.030930submit/tizen/20171017.031118accepted/tizen/unified/20171017.071154accepted/tizen/4.0/unified/20171017.212505Łukasz Stelmach1-0/+1
Change-Id: I3a48b84454eccc1b5382f47930d40fd55f67ac6d Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2017-10-13rpi: Read the value of RSTS registerŁukasz Stelmach2-0/+70
RSTS register allows passing information from OS too bootloader upon reboot. Change-Id: I2fa04fa0e63e5c81f78901c06ca8884f7e89f8e8 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2017-09-25rpi: tizen-boot: enable runtime customisation of bootargs with ${opts}tizen_4.0.IoT.p1_releasesubmit/tizen_4.0/20170927.093628submit/tizen/20170927.093519accepted/tizen/unified/20170927.181409accepted/tizen/4.0/unified/20170927.181939Łukasz Stelmach1-1/+1
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>
2017-09-23rpi: tizen-boot: remove the ramdiskdev variableJaehoon Chung1-3/+2
'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>
2017-09-19rpi: tizen-boot: modify the parameter check logicsubmit/tizen_4.0/20170922.072114submit/tizen/20170922.071838accepted/tizen/unified/20170925.071203accepted/tizen/4.0/unified/20170925.071737Junghoon Kim1-14/+13
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>
2017-09-19spl: spl_mmc: add __maybe_unused to mmc_load_image_raw_sector()Seung-Woo Kim1-2/+3
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>
2017-09-18packaging: add spl-atf and u-boot raw filesegukim1-2/+15
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>
2017-09-18rpi3: enable spl-atf build configegukim2-1/+37
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>
2017-09-18ARM: bcm283x: apply SUPPORT_SPLegukim1-0/+1
apply SUPPORT_SPL to support spl loading atf on raspberry pi 3 with bcm2835. Change-Id: I200a2a7673db5eceaf94abb4c68377a1912e00cb Signed-off-by: egukim <egukim@dignsys.com>
2017-09-18spl: implement spl-atf on raspberry 3 begukim6-0/+285
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>
2017-09-15usb: dwc2: Align size of invalidating dcache before starting DMAsubmit/tizen_4.0/20170915.051857submit/tizen/20170915.052049accepted/tizen/unified/20170915.195826accepted/tizen/4.0/unified/20170915.201918Seung-Woo Kim1-1/+2
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
2017-09-05SPL: FIT: allow loading multiple imagesAndre Przywara3-2/+150
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
2017-09-05SPL: FIT: factor out spl_load_fit_image()Andre Przywara1-82/+80
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
2017-09-05SPL: FIT: improve error handlingAndre Przywara1-2/+13
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
2017-09-05SPL: FIT: rework U-Boot image loadingAndre Przywara1-14/+32
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
2017-09-05SPL: FIT: refactor FDT loadingAndre Przywara1-31/+57
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
2017-09-04spl: add support to booting with ATFKever Yang6-0/+301
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
2017-08-30rpi3: tizen-boot: Add the ethernet macaddrsubmit/tizen_4.0/20170830.085228submit/tizen/20170830.084925accepted/tizen/unified/20170830.161405accepted/tizen/4.0/unified/20170830.134209Jaehoon Chung1-1/+1
Add the smsc95xx.macaddr for using the unique macaddr. Change-Id: I5d74c2d44372ca19d4776c3dd12504f888500748 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-08-23rpi3: tizen-boot: remove duplicated kernel image loadingSeung-Woo Kim1-2/+1
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>
2017-08-16rpi3: tizen-boot: Disable to display the log from HDMIJaehoon Chung1-1/+1
"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>
2017-08-08rpi: tizen-boot: add the 'ramdisksize' as 12MB for ramdisk-recoverysubmit/tizen/20170808.230223Jaehoon Chung1-0/+1
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>
2017-08-08configs: tizen: enable the CONFIG_NET_RANDOM_ETHADDRJaehoon Chung1-0/+1
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>
2017-08-07cmd: usbdown: fix build error without CONFIG_SET_DFU_ALT_INFOSeung-Woo Kim1-3/+6
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>
2017-08-07tizen: enable nfsdown command supportSeung-Woo Kim1-1/+1
Enable nfsdown command support for odroid-u3. Change-Id: I395ee791ed4da7ed75f84d4357949641622f2148 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2017-08-07tizen: enable usb host ethernet supportSeung-Woo Kim2-0/+9
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>
2017-08-04tizen: add default dfu macro for nfsdownSeung-Woo Kim1-0/+1
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>
2017-08-04cmd: nfsdown: add image file name as optional argumentSeung-Woo Kim1-1/+9
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>
2017-08-04cmd: nfsdown: fix memory corruption with global memory freeSeung-Woo Kim1-3/+10
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>
2017-08-04cmd: nfsdown: update usage descriptionSeung-Woo Kim1-1/+3
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>
2017-08-03scripts: sd_fusing_rpi3: add the sleep before umountingJaehoon Chung1-0/+1
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>
2017-07-31rpi: tizen-boot: check reboot parameter to determine booting modesubmit/tizen_4.0/20170828.100004submit/tizen_4.0/20170811.094300submit/tizen/20170731.104109accepted/tizen/unified/20170801.055005accepted/tizen/4.0/unified/20170829.015917accepted/tizen/4.0/unified/20170816.013213Junghoon Kim1-7/+23
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>
2017-07-28scripts: sd_fusing_rpi3.sh: add inform partition supportJunghoon Kim1-1/+16
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>