summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-07-27tizen: add default dfu macrossubmit/tizen/20170728.011806accepted/tizen/unified/20170728.195902Seung-Woo Kim1-0/+4
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>
2017-07-27exynos4-dt: fix build error caused by rebaseSeung-Woo Kim1-2/+3
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>
2017-07-27cmd: usbdown: use full path of loaded file for writing fat partSeung-Woo Kim1-1/+1
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>
2017-07-27cmd: usbdown: handle error of file load command during updateSeung-Woo Kim1-2/+3
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>
2017-07-27cmd: usbdown: remove memory leak on usbdown_get_alt()Seung-Woo Kim1-7/+17
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>
2017-07-27cmd: usbdown: remove overflow possiblity on fill_entity_usbdown()Seung-Woo Kim1-1/+1
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>
2017-07-26scripts: sd_fusing_rpi3.sh: fix typo in ramdisk-recovery partitionJunghoon Kim1-1/+1
Fix typo in ramdisk-recovery partition description. Change-Id: Iaecd73bd2443ed30484159d69f9b90e44ea8966b Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2017-07-25scripts: tizen: move the fusing scripts to tizen directoryJaehoon Chung2-0/+0
Move the tizen specific scripts to tizen directory. Change-Id: I50f004ac078cd7f610e78d668acc94f2aa6b5e0e Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-07-25scripts: rpi3: add the fusing script for rpi3Jaehoon Chung1-0/+328
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>
2017-07-24cmd: usbdown: add ramdisk.img fileSeung-Woo Kim1-0/+1
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>
2017-07-20scripts: odroid-xu4: add ramdisk.img flashing supportJunghoon Kim1-9/+61
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>
2017-07-20scripts: odroid-xu4: remove non-necessary FUSE structJunghoon Kim1-41/+10
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>
2017-07-20scripts: odroid-xu4: support new version of sfdiskJunghoon Kim1-9/+44
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>
2017-07-20scripts: odroid-xu4: add microSD fusing scriptJunghoon Kim1-0/+362
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>
2017-07-11configs: odroid-xu3: remove the CONFIG_I2C_COMPATJaehoon Chung1-1/+1
Remove the CONFIG_I2C_COMPAT, instead enable the CONFIG_SYS_I2C_S3C24X0. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> [Cherry-pick from mainline to remove warning message after building] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: Id57a2672d240e2f442ceba02e3262bcaf31e693a
2017-07-06rpi: tizen-boot: check whether there is an init file in sbin directorysubmit/tizen/20170707.021344accepted/tizen/unified/20170711.180428Jaehoon Chung1-2/+2
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>
2017-07-04rpi: tizen-boot: support the booting without ramdisk imagesubmit/tizen/20170705.015412submit/tizen/20170705.011711accepted/tizen/unified/20170705.162346Jaehoon Chung1-6/+13
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>
2017-06-20Revert "packaging: u-boot: build only u-boot-tools for arm64"submit/tizen/20170704.013951Seung-Woo Kim1-14/+2
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>
2017-06-05Turn off ASan buildsubmit/tizen/20170607.041547accepted/tizen/unified/20170609.054127Gonzha Dmitriy Evgenevich3-0/+3
Turn off ASan in case of ASan build for u-boot, u-boot-xu3 and u-boot-rpi3 packages Change-Id: I1a3714f47eb14da53fac8a14e179d90ffa416b7f
2017-06-01cmd: nfsdown: support FAT type imagesubmit/tizen/20170602.011955accepted/tizen/unified/20170602.154735Jiho Chu1-13/+48
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>
2017-04-21packaging: add the u-boot-rpi3 spec filesubmit/tizen/20170522.064308accepted/tizen/unified/20170531.082339Jaehoon Chung2-0/+101
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>
2017-04-18script: add the boot_script for rpi3Jaehoon Chung1-0/+53
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>
2017-04-14TPL: TM2: config: fix to use large memory for kernel decompressionSeung-Woo Kim1-1/+1
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>
2017-04-14TPL: TM2: config: disable PSCI_RESETSeung-Woo Kim1-0/+1
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>
2017-04-12packaging: change the URL informationtizen_4.0.m1_releasesubmit/tizen/20170414.042831accepted/tizen/unified/20170418.072224Jaehoon Chung2-2/+2
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>
2017-04-12packaging: update the version information to v2017.03Jaehoon Chung2-2/+2
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>
2017-04-11net: nfs: fix the regression when nfs_read_reply() is calledJaehoon Chung1-1/+1
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>
2017-04-11TPL: TM2: f_thor: fix wrong size caused by casting s32 to u64Seung-Woo Kim1-3/+3
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>
2017-04-11configs: odroid_xu3: enable CONFIG_CMD_NFS_DOWNLOADJiho Chu2-0/+6
Enable CONFIG_CMD_NFS_DOWNLOAD to use nfs update feature. Change-Id: I4a9f2e312dd659316feef23dfa029bf594b798f4 Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
2017-04-11cmd: nfsdown: support nfsdown command for TizenJiho Chu3-0/+417
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>
2017-04-11tizen: add ramdisk.img file to odroid-u3 partition mapping informationSeung-Woo Kim1-0/+1
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>
2017-04-11samsung: platform_boot: add ramdisk booting about autobootJaehoon Chung2-4/+17
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>
2017-04-11usb: xhci-exynos5: Disable USB 3.0 port for host modeDongwoo Lee2-0/+13
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>
2017-04-11packaging: remove profile and target macro usageSeung-Woo Kim2-8/+0
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>
2017-04-11packaging: squash patches from upstream to HEAD~10Seung-Woo Kim1-0/+1
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>
2017-04-11usb: xhci: Limit transfer length of a single TDDongwoo Lee1-1/+29
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>
2017-04-11cmd: usbdown: pass through for nonexistent filesSeung-Woo Kim1-1/+2
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>
2017-04-11cmd: usbdown: fix return value for cmd funtionsSeung-Woo Kim1-13/+13
The return value for cmd functions should not be errno, so this patch fixes to use proper return value for cmd functions. Change-Id: I9584ed2e12b81d7807e4fc0b41dbf714462acd1c Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2017-04-11cmd: usbdown: mark an internal function as staticSeung-Woo Kim1-1/+1
This patch just marks an internal function as static. Change-Id: Ie15c90ab078244b255099ea46af8d7ab5590eb8a Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2017-04-11cmd: usbdown: support the checking signature featureJaehoon Chung1-1/+22
Added the checking signature feature for preventing to flash wrong image. This funcionality does the same behavior with thor. Change-Id: I2645cd8e506ea412be39186952a0860fe64bdaf3 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-04-11TPL: TM2: config: add download gpio conditionSeung-Woo Kim1-1/+1
In specific TM2, gpio value is different from 0x1 or 0x81 at bootup time. So this patch add download gpio condition with 0x41. Change-Id: I4772cf8019aca1c047c7e2c0debbd2a1024036ff Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2017-04-11cmd: usbdown: support the usbdown from usb storage to mmcJaehoon Chung4-0/+540
This command is to support the download mode from usb storage to mmc block device. XU4 didn't support the thor download, so this solution might be replaced to thor download. * How to use this command 1. Assume that Block number of eMMC block device is "0" 2. If you want to flash the rootfs.img, $update 0:0 mmc rootfs.img - 0:0 -> usb block 0 devices and partitioin 0 if you just enter "0" instead of "0:0", that check the partition 1 by default. - mmc -> interface to flash the image - rootfs.img -> filename to flash (directory is "/" by default.) If you want to use the directory, can use likes "/tizen/rootfs.img". (There is rootfs.img under "tizen" directory.) 3. Use "update all" command $usbdown all - directory is "/updateTizen/ by default. *Recommendation - Use "usbdown all" Change-Id: I267c9b871741e9e1f6aef29965f1f846e19864f1 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-04-11TPL: TM2: config: fix MAX77843 MUIC to recognize USB path for specific adcSeung-Woo Kim1-1/+1
With some usb cable with the specific adc, TM2 target in download mode is not recognized from host usb. So this patch fixes to set detect register of MAX77843 MUIC to set proper path for the cable. Change-Id: Ib9c5a2eef68c85dba92dd458807effec11382a09 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2017-04-11packaging: exclude build for non proper obs projectSeung-Woo Kim2-0/+8
For both exynos4412 and exynos5 u-boots are not used by non-ARM / AARCH64 projects, wearable projects, or TM1 target project. So, this patch exclude build from not required obs project. Change-Id: I594cf3b8528b61f6ee1366d8429e466d7282a197 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2017-04-11ARM: exynos: dts: add the reboot-mode nodes for tizen boardsJaehoon Chung3-0/+14
Odroid-U3/XU3 and Trats2 boards supports the reboot-mode with inform register. In case of Odroid, it uses the INFORM2 register for reboot-mode. But it uses the INFORM3 register for reboot-mode on trats2 board. (To ensure the backward compatible for older kernel.) Change-Id: Ic1b51d675a65086dd113c0d3920f4bd67df167bc Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-04-11samsung: board: support the checking reboot modeJaehoon Chung1-0/+1
Support the checking reboot mode. If there is no compatible or inform-num, then this function will not do nothing. Change-Id: Iefe5891919adb2ca224ecb4bfd2a441a0e2efd02 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-04-11samsung: misc: support to check reboot mode with inform registerJaehoon Chung2-0/+32
To support the reboot mode, add the check_reboot_mode() function. This function is checking which reboot mode is with INFORM register. "inform-num" can get from device-tree with "samsung,reboot-mode" compatible. Change-Id: Ib3e201a6ab17afbc163376b139b1a9977fbf7fb6 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-04-11ARM: exynos: power: add the functions for controlling INFORM registerJaehoon Chung2-0/+65
To control the INFORM register, add the some functions. There are INFORM0~3 in exynos5, and there are INFORM0~7 in Exynos4. Change-Id: I43d9ed09c97e91af2f0aecfb80266b66e0493e0d Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2017-04-11TPL: TM2: image: Add workaround text to show exact download modeSeung-Woo Kim2-0/+0
This patch adds workaround THOR MODE text to download logo. The fixed png file is converted with following command: convert download.png download.bgra Change-Id: I70c866f7309dc9f9c6d96dac44bce6e0ea16dd77 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2017-04-11TPL: TM2: config: add ess base address to bootargsSeung-Woo Kim1-1/+1
The ess base address parameter, ess_setup in bootargs is used from exynos-ss in kernel. So this patch adds ess_setup with specific address to bootargs. Change-Id: I7b5a3d621a485dfbe15a58bf5f2b201edb1bf2e5 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>