Age | Commit message (Collapse) | Author | Files | Lines |
|
All Tizen Exynos Linux kernels (v4.14 and even older v4.1) support
OdroidXU3-lite board and provides proper dtb file for it, so this
workaround is no longer needed. It may even cause overheating issues,
because 'real' XU3 board uses higher CPU frequencies, which are no
available on the 'lite' board.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I203ed164741e3281a8923a979e8e077905fb681f
|
|
Separate rpi3 spec file for 32bit.
QB system can't parse the macro like %ifarch and %define.
This patch is for building aarch64 architecture on QB system.
Change-Id: Ia81bd81bf439feea2baf2de7dfeed8840a7ff683
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Change logelvel from 7 to 4.
If someone want to see full log, change loglevel on u-boot console.
Refer to below command on u-boot
- edit opts
After changing loglevel, enter "saveenv" command.
Change-Id: I9044e70d1f064922e7a9f255ef2db63e158864fb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
This fixes a regression caused by
commit 07b2b78ce4bc8ae25e066c65245eaf58c0d9a67c
dm: usb: Convert USB storage to use driver-model for block devs
which caused part_init to be called when it was not previously.
Without this patch, the following happens when a USB sd card reader is used.
=> usb start
starting USB...
USB0: Port not available.
USB1: USB EHCI 1.00
scanning bus 1 for devices... 3 USB Device(s) found
scanning usb for storage devices... Device NOT ready
Request Sense returned 02 3A 00
### ERROR ### Please RESET the board ###
This happens because dev_desc->blksz is 0.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
[sw0312.kim: cherry-pick mainline commit 1e5eca7d4225 to fix divsion by zero issue with empty sdcard reader]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I13f09d9fcfb078a3f443d3500112c12a89c4fec2
|
|
Update script version information to check latest version.
It's helpful to debug script problem.
Change-Id: I4cfc5293cbbf8a3d75b516b547d71cb02c5fa089
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
This patch changes maximum count of reading rx fifo by following
emprical test, and applies circular queue to buffer.
Change-Id: Id498ea9c0c22014f00af2b45ad64ad4c6e69a021
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
|
|
From RPI3, log printing to lcd video console causes slow down of
uart rx getc called and fifo overrun occured from uart rx because
rpi3 mini uart has small h/w fifo. Remove lcd from console output.
Change-Id: I862621dd84340983a5a7aea8efc32699b44811bb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
After the UART was initialized, we may still have bogus data in the
RX queue if it was enabled with incorrect pin muxing before.
So let's flush the RX queue whenever we initialize baud rates.
This fixes a regression with the dynamic pinmuxing code when enable_uart=1
is not set in config.txt.
Fixes: caf2233b28 ("bcm283x: Add pinctrl driver")
Reported-by: Göran Lundberg <goran@lundberg.email>
Reported-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Tested-by: Tuomas Tynkkynen <tuomas@tuxera.com>
[sw0312.kim: cherry-pick mainline commit 293b9814d760 for rpi3 uart rx]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I6eb64561ee0e3103b410850c2cadcef55c68b881
|
|
Since mini uart has very small rx fifo, writing long string can
cause overrun. To prevent this, this patch appiles buffer for rx
process.
Change-Id: Ic5bd37875567fe51eb5491b8867f39c1a78de6b9
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
|
|
To apply custom network configuration, this patch adds ip_opt to
bootcmd.
Change-Id: Ic0a62ed05af37f7393d5d35ab83312bde28b03b3
Fixes: 653d68709c27 ("rpi: tizen-boot: rpi3-32b: pass network arguments on flash mode")
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
|
|
Support to enter the flash mode with command.
- Refer to below command:
U-boot> run tfm
Note: this applies, to rpi3-32b from rpi3, the commit cf212f48a110
("config: tizen_rpi: support to enter the flash mode with command").
Change-Id: Iafe01c35f37eca00132767215e380ec4d9a5426d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
To setup network environment for flash manager, this patch makes
passing parameters such as 'ipaddr', 'netmask', and 'gateway' through
kernel bootcmd. Those parameters can be assigned by user-self before
using flash mode.
Note: this is applying below patches from rpi3 to rpi3-32b:
f6f75b5bb37d ("rpi: tizen-boot: rpi3: pass network arguments on flash mode")
e2e0f18b9f3e ("rpi: tizen-boot: rpi3: remove dhcp as default network configuration")
Change-Id: I95ec27c1e3c5f4728b3894fcb1c3f70c2b28499a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
Fix to use setenv for bootmode instead of assignment for remaining
part from the commit 5c008029d782 ("config: tizen_rpi: move env
values from boot script to tizen_rpi.h").
Change-Id: I2b3773cbf3a141e41eac82dc70f2e47b34000233
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
Support 32bit rpi3 u-boot image.
- 32bit u-boot doesn't use spl.
Change-Id: I6309654acc7818c5bd65abd10cfece68d2da3dde
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Fix typo vc_mem.mem_base and vc_mem.mem_size.
Change-Id: I75d0500c835225c4d668e0b461cf325b3ab4a208
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Check whether block device is valid or not.
Refer to previous commit about sd_fusing_rpi3.
Change-Id: Ia2124f8086c91c0309efed26e82e8c2ba5d76883
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Check whether block devic is valid or not.
If try to update the image without block device, it will make just
device image.
e.g)sudo ./sd_fusing_rpi3.sh -d /dev/sdf -b kernel.tar
- then it's maken kernel image as /dev/sdf. it's not real block device.
Change-Id: Ie6dc12a7f0d95204d698194b5356ce376fa43973
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Fix wrong argument about setenv. It's typo.
Change-Id: I200c2ada72ffaeece03ceb7403a6420fe8e5fab2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Remove unnecessary comment.
Change-Id: I8eebe6b7e24101556ee444d0cebc75edb0d8e454
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Some bootargs values can be located to tizen_rpi header.
Because it's used same value in script of rpi3 and rpi3 32b.
Change-Id: I73d2d473d624f2ffa37f1fe0ed959ff098bb9247
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Support to enter the flash mode with command.
- Refer to below command:
U-boot> run tfm
Change-Id: Ie5835573cdefb3ccfe3b67d3d20a4e301672251c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Some environment values are used with same value.
It can be moved to tizen_rpi header.
Change-Id: I679491fc03e0381df94025044e80e476f0953db2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Tizen specific configs can be located to tizen_rpi header.
It's more easier to maintain config relevant to tizen.
Change-Id: I6aff98fd9cc4ed1d812ba217c655ce5e0ea59035
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Add the tizen_rpi header file for tizen.
It can be included tizen specific configuration for rpi boards.
Someone wants to change loglevel, follow the below command :
U-Boot> edit opts
edit : loglevel=7
- Change the loglevel value what you want.
Change-Id: I60157dd380a447ce1757921810e0b942be3d2843
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
If there is no ip setup on environmental variable, dhcp is used as
default. But, in this case, if dhcp server is not set on connected
network neither, kernel waits dhcp server for a long time (about 3
minutes). So this patch removes dhcp option. After this, tfm handles
unconfigured network.
Change-Id: I513503d2ba81b2342c42967fc1b8cb74f17ce215
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
|
|
To setup network environment for flash manager, this patch makes
passing parameters such as 'ipaddr', 'netmask', and 'gateway' through
kernel bootcmd.Those parameters can be assigned by user-self before
using flash mode.
Change-Id: Ifda261598978b4cc985fe43e2e612fd58c49fdd1
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
|
|
This patch is based on "samsung: common: increase space for kernel from
8MiB to 16MiB".
Tizen is using platform_boot header file, not autocmd.cmd.
Change-Id: I5d245a51bf975d4a1ca51f6dbf6dba1ab8ef72fd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
v4.14 kernel for Odroid easily exceeds 8MiB, thus loading kernel with the
default configuration corrupts previously loaded dtb. Increase ${fdtaddr}
to 0x41000000 to avoid this issue, what gives about 16MiB space for kernel.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I33e897d259f4428602fdd476db3cc0adf700f33c
|
|
Added a comment how to build with gbs for rpi3.
If there is no comment for this, it's difficult to know how to make
u-boot image with gbs system.
(There is dependent on arm-trusted-firmware-rpi3 repository.)
Change-Id: Iee14253dd011c171104273d7285fff969e68e077
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Normal endpoint descriptor size is 7, but for audio extension it is
9. Handle that correctly when parsing endpoint descriptor.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
[jcsing.lee: cherry-pick from mainline to fix booting hanging]
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Change-Id: Icf90864b9649686dd17132af3493a5bab6c7f4e3
|
|
Remove not necessary tmp variable and comment.
Note: it is partial revert of the commit e560d71f0d64 ("scripts:
odroid-xu4: add ramdisk.img flashing support") to flash ramdisk.img
at the last time. Almost all of revert is done with the commit
de355221bf93 ("scripts: sd_fusing_xu4: add the ramdisk partition")
but there was remaining variable and comment.
Change-Id: I1b28fa8ab5852fefa1d83b68b498e89ddafe5660
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
Add the ramdisk partition as number 7.
Change-Id: Ie3a833bbe85fe27e0f751a426e09f8e4616fd09b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
If there is a partition7, set to dfu_alt_system_2.
Otherwise, just use the dfu_alt_system.
(It's relevant to thor download.)
Change-Id: I1ff7b5a6c97ad7eed2b6cd489260cfdc902c2a73
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Add the dfu_alt_system information version 2.
It's used to flash a ramdisk.img at partition 7.
If there is no partition 7, it will load from mmcbootpart as mmcblk0p1.
Change-Id: I2830a950ab87e80c66e4d5dc134c12523011252e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Currently, odroid boot image has 20MB modules.img and exact 20MB
modules partition size causes thor flash failure because it is in
extended parition. Change modules partition size as 32MB.
Change-Id: I1c383f359acf3d415c823ff991901a55e647dfd6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
From raspbian cmdline.txt, from kernel related otpion, there is
dwc_otg.lpm_enable=0 which is not in Tizen u-boot booting script.
Add dwc_otg option line raspbian.
Change-Id: I37a723f63bae288f9d9d3e0b88adca01398f3c22
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
There are wrong dtb file names. Update the wrong dtb file names
and add rpi 3 b plus model dtb.
Change-Id: I61f8833c08443ad8514b6f3bd785653baf609960
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
To identify rpi3 b model and rpi3 b+ model, set dt filename by
its model.
Note: Tizen uses raspbian vendor kernel, so raspbian dt name is
used instead of mainline file name set by booting.
Change-Id: I84dc4a38e5f21527912749eee28d784245123340
Reference: 7fe77226aa29 ("rpi: Add identifier for the new RPi3 B+")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
The new Raspberry Pi B 3+ has a lan78xx device attached to it. Let's add
driver support in U-Boot for it.
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
[sw0312.kim: cherry-pick from mainline to support rpi3 b+]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Idd48c133374f7da8036baeeca704c39ece0b146f
|
|
The Raspberr Pi Foundation released a new RPi3 version which we want
to detect as well, so we can enable ethernet on it and know the correct
device tree file name.
Add an identifier for it.
Signed-off-by: Alexander Graf <agraf@suse.de>
[sw0312.kim: cherry-pick from mainline to identify rpi3 b+]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I1c57f8bd9865366bfee5b66b5a17dcc82b022448
|
|
The new Raspberry Pi B 3+ has a lan78xx device attached to it. Let's add
driver support in U-Boot for it.
Signed-off-by: Alexander Graf <agraf@suse.de>
[sw0312.kim: cherry-pick from mainline to support rpi3 b+]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I4256aca6f3ad142ff43539fda9bb9ae2a83a25ee
|
|
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: I17bda3435176c992d9b457bec14f5aded804f0dc
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
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: I41955d2b2dd08edd23897df4e458ca8f59eaf9a5
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
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>
|
|
During file download, it only uses 32bit variable for file size and
it limits maximum file size less than 4GB. Update to support more
than 4GB file with using two 32bit variables for file size as thor
protocol 5.0.
Change-Id: Ifc572b6939db1693455e168e2e8fb871edac62a2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
The thor sender can send filename without null character and it is
used without consideration of overflow. Actually, character array
for filename is assigned with DEFINE_CACHE_ALIGN_BUFFER() and it
is bigger than size of memcpy, so there was no real overflow.
Fix filename overflow for code level integrity.
Change-Id: I774e4812b743d6fd99e52feadf84488708bc652c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
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>
|
|
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>
|
|
To support cross compile, partilly pick from mainline commit.
Base commit: 0778e7c50ba1 ("script: Make the get_default_envs.sh script working with newest u-boot")
Change-Id: I35d89cd30eafe83de648aec48e2698396bfaf3dc
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
There is wrong #ifdef and #endif bracket and it causes unused
variables and unused function build warning. Fix the wrong bracket
for CONFIG_LCD.
Note: When rebasing, this patch should be squashed fixed commit.
Change-Id: I4d9b695fd77ead6ab541ba37db7516eb16ea371c
Fixes: 4a6f3341d549 ("samsung: misc: new feature: common interactive charger")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|