platform/kernel/u-boot.git
21 months agosamsung: tizen_amlogic: increase ramdisk size from 8M to 32M 29/278429/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062948 accepted/tizen/7.0/unified/hotfix/20221116.110534 accepted/tizen/unified/20220726.012223 submit/tizen/20220725.010916 tizen_7.0_m2_release
Jaehoon Chung [Wed, 20 Jul 2022 09:25:55 +0000 (18:25 +0900)]
samsung: tizen_amlogic: increase ramdisk size from 8M to 32M

Increase ramdisk size from 8M to 32M.

Change-Id: Ie36d169d0e815ce6a0a0b671de80a6616b9af73c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
21 months agoscripts: tizen_rpi: remove unnecessary line change 57/278257/2 accepted/tizen/unified/20220719.131727 submit/tizen/20220718.110123
Jaehoon Chung [Mon, 18 Jul 2022 06:53:33 +0000 (15:53 +0900)]
scripts: tizen_rpi: remove unnecessary line change

Remove unnecessary line change.

Change-Id: I91ab784a1e46d0145ff511b4f1012a23eeb5022d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
21 months agoscripts: tizen_rpi: add the reboot_param_clear 56/278256/2
Jaehoon Chung [Mon, 18 Jul 2022 06:14:15 +0000 (15:14 +0900)]
scripts: tizen_rpi: add the reboot_param_clear

Add the reboot_param_clear to clear the reboot parameter.
If there is no method to clear reboot parameter, it can be enterred to some
mode infinitely.

Change-Id: I6edbe2d4d989e172fa7bc6f032b5e627e540637a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
21 months agoscripts: sd_fusing_rpi4: change a name from recovery to ramdisk-recovery 29/277829/2 accepted/tizen/unified/20220714.135249 submit/tizen/20220714.040425
Jaehoon Chung [Thu, 14 Jul 2022 02:29:38 +0000 (11:29 +0900)]
scripts: sd_fusing_rpi4: change a name from recovery to ramdisk-recovery

Change a name from recovery_a/b to ramdisk-recovery_a/b.

Change-Id: I36593eccf4e4e33989365a180951434d37599c75
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
21 months agoscripts: sd_fusing_rpi4: set to norm about reboot-param by default 88/277788/5
Jaehoon Chung [Wed, 13 Jul 2022 09:07:29 +0000 (18:07 +0900)]
scripts: sd_fusing_rpi4: set to norm about reboot-param by default

Set to norm about value of  reboot-param.bin by default.
At first booting, the below message is displayed on u-boot side.
- Failed to load 'reboot-param.bin'

Change-Id: I9cbc6f3f3634661e49318d2997b9bf2f82ecd522
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
21 months agoscripts: sd_fusing_rpi4: add new partition information files 87/277787/5
Jaehoon Chung [Wed, 13 Jul 2022 08:02:15 +0000 (17:02 +0900)]
scripts: sd_fusing_rpi4: add new partition information files

Add new partition information files.
- partition-ab-cloned.info
- upgrade-status.info
- partition-param.bin -> paritition-ab.info

Change-Id: I7ad94d1f30fd01fd4e3e9ee9948e0a266dd8a5aa
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
21 months agoscripts: sd_fusing_rpi4: change a name from modules_a/b to module_a/b 86/277786/1
Jaehoon Chung [Wed, 13 Jul 2022 07:34:44 +0000 (16:34 +0900)]
scripts: sd_fusing_rpi4: change a name from modules_a/b to module_a/b

modules_a/b is typo.
Change a correct name from modules_a/b to module_a/b.

Change-Id: I61a0e461598b48a3c494b569302bf4e8e9b366ac
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoconfigs: tizen_rpi_4: enable TIZEN_RPI4 config 32/277132/1 accepted/tizen/unified/20220704.213030 submit/tizen/20220704.015536
Jaehoon Chung [Fri, 1 Jul 2022 04:48:58 +0000 (13:48 +0900)]
configs: tizen_rpi_4: enable TIZEN_RPI4 config

Enable TIZEN_RPI4 configuration.
If want to add some codes for tizen specific code, use this
configuration.

Change-Id: I33296230b29895f53d3b620f6db5137c7b76c631
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoARM: bcm283x: Add TIZEN_RPI3/4 config 31/277131/1
Jaehoon Chung [Fri, 1 Jul 2022 04:44:17 +0000 (13:44 +0900)]
ARM: bcm283x: Add TIZEN_RPI3/4 config

Add TIZEN_RPI3/4 config to check the tizen specific things.

Change-Id: Ie25b90046cf2bfa3e954b000afa5ae33fa41b775
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agodisk: part_efi: skip the verification when partition size is smaller 25/277125/2
Jaehoon Chung [Fri, 1 Jul 2022 03:41:20 +0000 (12:41 +0900)]
disk: part_efi: skip the verification when partition size is smaller

In tizen, user partition is created as remained disk size.
It's a difficult to fix to constant value.
This patch is help to skip the verification if partition size is smaller than real size.

Change-Id: I7156ddd8b62aec5e931b5fa14a9ad5a262a3a646
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agosamsung: tizen_rpi: add update_gpt_part uboot variable 24/277124/2
Jaehoon Chung [Fri, 1 Jul 2022 03:54:46 +0000 (12:54 +0900)]
samsung: tizen_rpi: add update_gpt_part uboot variable

Add update_gpt_part uboot variable.
If wants to change a partition from mbr to gpt, run the below command on
u-boot console.

- run update_gpt_part

NOTE: This is for only RPi4.

Change-Id: Idd46ce313f8c28b9b04f7f8c7190ee1aed51d6f0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agosamsung: tizen_rpi: add a gpt partition list 23/277123/2
Jaehoon Chung [Fri, 1 Jul 2022 03:18:54 +0000 (12:18 +0900)]
samsung: tizen_rpi: add a gpt partition list

Add a gpt partition list to verify or write about gpt.

Change-Id: Ie56076ee91316499829fc6be125dd93510e01e0b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoconfigs: tizen_rpi_4: enable PARTITION_TYPE_GUID config 22/277122/2
Jaehoon Chung [Fri, 1 Jul 2022 03:10:08 +0000 (12:10 +0900)]
configs: tizen_rpi_4: enable PARTITION_TYPE_GUID config

Enable PARTITION_TYPE_GUID and RANDOM_UUID configruations.
Gpt partition table needs to use UUID.
If there is not the defined UUID, it has to generate RANDOM UUID.
Otherwise, it will be failed during verifying or writing.

Change-Id: Ie98adc68b2ac7150b81ac47ef49362e46f7349f0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoconfigs: tizen_rpi_4: enabled CMD_GPT configuration 21/277121/1
Jaehoon Chung [Thu, 30 Jun 2022 04:48:50 +0000 (13:48 +0900)]
configs: tizen_rpi_4: enabled CMD_GPT configuration

Enable CMD_GPT configuration.

Change-Id: I3dbcecfb0fb5e671ed4afce4c209580738bc457c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: If setting ansi color, clear it always 51/277051/1
Seung-Woo Kim [Thu, 30 Jun 2022 03:52:10 +0000 (12:52 +0900)]
scripts: tizen: rpi4: If setting ansi color, clear it always

There is case not clearing ansi color. Clear it always.

Change-Id: I47695a7edc3250ce311aa052f16eb925704976f7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
22 months agosamsung: tizen_rpi: add a set_to_part_a/b uboot env 95/276995/1 accepted/tizen/unified/20220701.055139 submit/tizen/20220630.020730
Jaehoon Chung [Wed, 29 Jun 2022 03:59:58 +0000 (12:59 +0900)]
samsung: tizen_rpi: add a set_to_part_a/b uboot env

Add a set_to_part_a/b uboot env.
If wants to change to part_a or part_b, run the below command on u-boot
console.
e.g) "run set_to_part_a" or "run set_to_part_b"

Change-Id: I639aea2809f08382ade115d6718fa63d3931c35a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: disable metadata_csum feature about inform partition 35/276935/2
Jaehoon Chung [Tue, 28 Jun 2022 01:40:36 +0000 (10:40 +0900)]
scripts: tizen: rpi4: disable metadata_csum feature about inform partition

Disable metadata_csum feature about inform partition.
It needs to disable to use ext4write command.

Change-Id: I0fee6fd08cbb9dc3426842ba0e26bd2fbab6dda1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoconfigs: tizen_rpi_4: enable CONFIG_EXT4_WRITE 34/276934/1
Jaehoon Chung [Fri, 24 Jun 2022 01:24:50 +0000 (10:24 +0900)]
configs: tizen_rpi_4: enable CONFIG_EXT4_WRITE

Enable CONFIG_EXT4_WRITE configuration.
It will be used to control a file under ext4 filesystem.

Change-Id: I72553b6675b8877326e832eda181efc9e0135cfa
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agotools: kwbimage: Fix printf format warning 52/276552/1 accepted/tizen/unified/20220622.133923 submit/tizen/20220622.023017
Marek Behún [Fri, 24 Sep 2021 21:06:38 +0000 (23:06 +0200)]
tools: kwbimage: Fix printf format warning

On 32-bit ARM the compiler complains:
  tools/kwbimage.c:547: warning: format ‘%lu’ expects argument of type
                                 ‘long unsigned int’, but argument 4 has
                 type ‘unsigned int’

Fix this by using %zu instead of %lu format specifier.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
[jh80.chung: cherry picked from mainline commit 3b5da64edfdc013b105573a20871659d37ab53de]

Change-Id: I058d4395fd8e6cab5ee593974173f97929ec6a55
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agomkimage: struct stat.st_size may not be long 51/276551/1
Heinrich Schuchardt [Sat, 15 Jan 2022 19:12:56 +0000 (20:12 +0100)]
mkimage: struct stat.st_size may not be long

The component st_size of struct stat is of type off_t. Depending on the
system printing it using %ld leads to a warning:

tools/mkimage.c:438:54: warning: format '%ld' expects argument of type
'long int', but argument 5 has type
'off_t' {aka 'long long int'} [-Wformat=]
  438 |     "%s: Bad size: \"%s\" is not valid image: size %ld < %u\n",
      |                                                    ~~^
      |                                                      |
      |                                                      long int
      |                                                    %lld

When comparing an off_t value to a 32bit integer we should not convert to
uint32_t but to off_t which may be wider.

Reported-by: Milan P. Stanić <mps@arvanta.net>
Fixes: 331f0800f1a3 ("mkimage: allow -l to work on block devices on Linux")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
[jh80.chung: cherry picked from mainline commit c28f2499952a78609e80d3b1f7aca9b0aab8d6d6]

Change-Id: I533f5bfde2fd49145625b1b2dfe413111f90ef36
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoconfigs: amlogic: revert to original configuration 47/276547/1
Jaehoon Chung [Mon, 20 Jun 2022 08:26:51 +0000 (17:26 +0900)]
configs: amlogic: revert to original configuration

Revert to original configurations.
It's based on v2021.10.

Change-Id: I6d5e9d15431ca9000a96a8556e2dcf5bf4aa37fa
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agotizen: build-amlogic: change the config names 46/276546/1
Jaehoon Chung [Mon, 20 Jun 2022 08:25:02 +0000 (17:25 +0900)]
tizen: build-amlogic: change the config names

Change the config name with tizen as prefix.

Change-Id: Id6a7fcd68e171e12fb2bc0b9130c2b7ead5a0181
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agopackaging: amlogic: change the config names 45/276545/1
Jaehoon Chung [Mon, 20 Jun 2022 08:22:07 +0000 (17:22 +0900)]
packaging: amlogic: change the config names

Change the config names with tizen as prefix.

Change-Id: I0c7d2179a8d969ba6abf58bbb5a7be1e75191744
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoconfigs: amlogic: create the tizen specific config files 44/276544/1
Jaehoon Chung [Mon, 20 Jun 2022 07:57:05 +0000 (16:57 +0900)]
configs: amlogic: create the tizen specific config files

Create the tizen specific amlogic config files.
To keep the mainline configs, seperate to other files.

Change-Id: I91179fd562e2d54c1b799d425a47aabbfc137c4a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: fix the missing hal_b information 24/276524/2 accepted/tizen/unified/20220621.140350 submit/tizen/20220620.061556
Jaehoon Chung [Mon, 20 Jun 2022 04:53:34 +0000 (13:53 +0900)]
scripts: tizen: rpi4: fix the missing hal_b information

Fix the missing hal_b information.

Change-Id: I0dcac7b578a7852a8e69fcb04d30d5e5dfee6625
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: create a partition-param.bin file 22/276522/2
Jaehoon Chung [Mon, 20 Jun 2022 04:39:46 +0000 (13:39 +0900)]
scripts: tizen: rpi4: create a partition-param.bin file

Create a partition-param.bin file to check the A/B partition.
This file has to be included at format time.

Change-Id: Iad21e3254026b31fa2316c166d908592b40965fc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: support to flash only B partiton 08/276508/1
Jaehoon Chung [Fri, 17 Jun 2022 11:12:05 +0000 (20:12 +0900)]
scripts: tizen: rpi4: support to flash only B partiton

If wants to update only B partition, "update" option can be used with b.
e.g) ./sd_fusing_rip4 -d <..> -b <..> --update b

Otherwise, it will be flashed to both partition.

Change-Id: Ic9cec8b506f663b50ace52040f8bccdd4f0315ff
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agotizen: rpi4: support A/B boot on PRi4 target 30/276430/1
Jaehoon Chung [Thu, 16 Jun 2022 07:47:45 +0000 (16:47 +0900)]
tizen: rpi4: support A/B boot on PRi4 target

Support A/B boot on RPi4.
It has to be partition-param.bin file to distinguish with
a/b in inform partition. Then bootscript can be parsing its value.

partition-param.bin can be changed to other name.
But it has to change also slotfile of uboot's environment as same value.

Change-Id: I143b9485117a0f10ed3d427a1f3f15b4a86ffd43
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agopackaging: add bc package as BuildRequires 99/276399/1 accepted/tizen/unified/20220620.030019 submit/tizen/20220616.045700
Jaehoon Chung [Thu, 16 Jun 2022 04:16:08 +0000 (13:16 +0900)]
packaging: add bc package as BuildRequires

Add bc package as BuildRequires.

Fix the below message during building package.
"/bin/sh: bc: command not found"

Change-Id: I36e3c97e3a58756898e40a1073dfa0779545daa7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: add reserved partition 57/276357/2
Jaehoon Chung [Wed, 15 Jun 2022 03:05:07 +0000 (12:05 +0900)]
scripts: tizen: rpi4: add reserved partition

Add reserved partition.
In future, if additional partition will be used, it can be used with
reserved partition.

Change-Id: I587f03011b853cba9c65d15229fd0c8929b8256d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: add the additional option to flash A/B partition 56/276356/1
Jaehoon Chung [Wed, 15 Jun 2022 02:01:13 +0000 (11:01 +0900)]
scripts: tizen: rpi4: add the additional option to flash A/B partition

Add additional option as '-ab'.
If it's used, it will be flashed to both A/B partitions.
Otherwise, it will be flashed to A partition by default.
Actaully, some developers don't need to update B partiton.

Change-Id: I584be9e1be388b9f6bc247d105e406dd66d86ec0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: add boot_a/b partition 44/276244/1
Jaehoon Chung [Mon, 13 Jun 2022 08:03:14 +0000 (17:03 +0900)]
scripts: tizen: rpi4: add boot_a/b partition

Add boot_a/b partition

Change-Id: Ifb106926e63ae5641be9251b21828ecedae3ab24
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: rpi4: add hal_a/b partition 43/276243/1
Jaehoon Chung [Mon, 13 Jun 2022 06:04:18 +0000 (15:04 +0900)]
scripts: tizen: rpi4: add hal_a/b partition

Add hal_a/b partition and don't support older sfdisk command anymore.
The maintaining older sfdisk command is wasted the cost.

Change-Id: Ic1fa41017cb9fa7d0aaae022509821545c627503
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: sd_fusing_rpi4: support gpt label 42/276242/1
Jaehoon Chung [Fri, 10 Jun 2022 09:18:05 +0000 (18:18 +0900)]
scripts: tizen: sd_fusing_rpi4: support gpt label

Support gpt label to use PARTLABEL.
This patch is based on what SRPOL had been shared.

Change-Id: I0d1221493e78d43a38bfe712d96622b7f216edaf
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: sd_fusing_rpi4: support A/B partition 41/276241/1
Jaehoon Chung [Thu, 9 Jun 2022 04:28:36 +0000 (13:28 +0900)]
scripts: tizen: sd_fusing_rpi4: support A/B partition

Support A/B partition layout.

Change-Id: I06e5999be208b75d049e93c6544e8769a6fc3265
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoscripts: tizen: sd_fusing: separate rpi3 and rpi4 40/276240/1
Jaehoon Chung [Thu, 9 Jun 2022 04:06:28 +0000 (13:06 +0900)]
scripts: tizen: sd_fusing: separate rpi3 and rpi4

RPi4 will have other partition layout.
It can't be used same fusing scsript about rpi3/4.

Change-Id: Ie16ee56a74612889107214ac19de44548eb7f1ee
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agotizen: rpi: add a partition_ab bootargs 39/276239/1
Jaehoon Chung [Mon, 13 Jun 2022 09:26:05 +0000 (18:26 +0900)]
tizen: rpi: add a partition_ab bootargs

Add a partition_ab bootargs and set to "a" by default.

Change-Id: Ief593f3b35efdda1170f2c35403a340f93dbfaf9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agotizen: bootscript: rpi4: remove mbr_check 07/276207/1
Jaehoon Chung [Mon, 13 Jun 2022 01:00:28 +0000 (10:00 +0900)]
tizen: bootscript: rpi4: remove mbr_check

Remove mbr_check to check whether the correct partition layout is used
or not. When A/B partition will be supported, the backward compatibility
will be blocked.

Change-Id: Ie973838c4c0b56c7d910fb15ca1780b985e69663
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
23 months agoconfigs: khadas-vim3/vim3l: update DFU_NAME_SIZE from 32 to 34 60/275460/1 accepted/tizen/unified/20220526.143539 submit/tizen/20220526.010143
Jaehoon Chung [Wed, 25 May 2022 04:58:37 +0000 (13:58 +0900)]
configs: khadas-vim3/vim3l: update DFU_NAME_SIZE from 32 to 34

Update DFU_NAME_SIZE from 32 to 34.
mainline device-tree name is logner than default size.
So it's failed to flash device-tree.
(mainline device-tree name : meson-g12b-a311d-khadas-vim3.dtb)

Change-Id: I7515cc297fc5386c06b2147e0de2ee0ba4ad446b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
23 months agodfu: add CONFIG_DFU_NAME_MAX_SIZE configuration 59/275459/1
Jaehoon Chung [Wed, 25 May 2022 04:48:46 +0000 (13:48 +0900)]
dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration

Add CONFIG_DFU_NAME_MAX_SIZE to change the proper size.
If name is longer than default size, it can do wrong behavior during updating
image. So it need to change the proper maximum size.

This patch is proviced the solution to change value with configuration.

Change-Id: I5c371eb749954b5cb699c04347d40d31fcf4a7d5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscripts: sd_fusing_rpi3: remove unnecessary grep calls 22/272122/1 accepted/tizen/unified/20220311.111953 submit/tizen/20220311.014813
Łukasz Stelmach [Wed, 9 Mar 2022 12:53:37 +0000 (13:53 +0100)]
scripts: sd_fusing_rpi3: remove unnecessary grep calls

Handle pattern matching with awk instead of grep.

Change-Id: I7377e578987dc77f0f22d0083630acd5888eff66
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2 years agoscripts: sd_fusing_rpi3: check file type before writing an image 16/272116/1
Łukasz Stelmach [Mon, 13 Sep 2021 16:46:39 +0000 (18:46 +0200)]
scripts: sd_fusing_rpi3: check file type before writing an image

Sometimes, when sfdisk failure is not handeled properly, sd_fusing_rpi3
may leave a regular file named like a device in the /dev directory. Such
file will exist and prevent images from beeing properly flashed until
the machine is rebooted. The message indicates there is somehting wrong
with the device file so users may check and fix any problems.

Change-Id: Ie7021129b858f0f4f2923ce88ee96f349e869029
Signed-off-by: Łukasz Stelmach <stlman@poczta.fm>
2 years agoscripts: sd_fusing_rpi3: do not print new, when asking for a reply 15/272115/1
Łukasz Stelmach [Mon, 13 Sep 2021 15:25:54 +0000 (17:25 +0200)]
scripts: sd_fusing_rpi3: do not print new, when asking for a reply

When printing prompt to ask users to confirm formatting of a card do
not print new line character after the message so users type their
response on the same line.

Change-Id: Ic53fcdd3b8ae3b4fe2c4259ab8e199f2fcc1bb2d
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2 years agorpi: always set fdt_addr to the correct value 21/271921/1 submit/tizen/20220306.235131
Marek Szyprowski [Mon, 14 Feb 2022 10:35:12 +0000 (11:35 +0100)]
rpi: always set fdt_addr to the correct value

The fdt_addr env have meaning only for the current runtime and it depends
on the dtb size or firmware version. If one save the environment to disk
and the loads it on the latter boot, the fdt_addr might change, what
result in passing incorrect dtb address to the kernel. Fix this by always
setting the fdt_addr env. This fixes system operation after saving the
env to disk and updating i.e. dtb files or firmware.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I8f242e0d92ff7cc8557c0fd4a7459804270d5d6d

2 years agopackaging: add baselibs.conf file 00/269500/2 accepted/tizen/unified/20220118.123155 submit/tizen/20220118.052714
Jaehoon Chung [Mon, 17 Jan 2022 06:57:11 +0000 (15:57 +0900)]
packaging: add baselibs.conf file

Add baselibs.conf file to copy vim3 u-boot into armv7l repo.

Change-Id: I06b54d57afb0a03a34e9f4ce20b1f441b365aed6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agorpi3: create the tizen specific rpi3 defconfig 52/268652/1 accepted/tizen/unified/20220105.120701 submit/tizen/20220104.074547
Jaehoon Chung [Wed, 29 Dec 2021 00:52:43 +0000 (09:52 +0900)]
rpi3: create the tizen specific rpi3 defconfig

Create the tizen specific rpi3 defconfig.
rpi_3_32b_defconfig/rpi_3_defconfig are restored to orignal mainline
status.

Change-Id: Ibdbd65d61bb148c3fbf13cc5045b0753c6c60009
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agorpi4: create the tizen specific rpi4 defconfig 51/268651/1
Jaehoon Chung [Wed, 29 Dec 2021 00:45:17 +0000 (09:45 +0900)]
rpi4: create the tizen specific rpi4 defconfig

Create the tizen specific rpi4 defconfig.
rpi_4_32b_defconfig and rpi_4_defconfig are restored to original mainline
status.

Change-Id: I409581139df9ae8fa080512b017f03c994c47c02
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agopackaging: Add dtc file in u-boot-tools package accepted/tizen/unified/20211125.003800 submit/tizen/20211124.034848
Jaehoon Chung [Wed, 24 Nov 2021 03:46:49 +0000 (12:46 +0900)]
packaging: Add dtc file in u-boot-tools package

Add dtc file in u-boot-tools package.

Change-Id: I30ca2b7b868d7ad362a3f600da0141e895056f7b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agopackaging: add u-boot spec file to build on obs submit/tizen/20211124.023912
Jaehoon Chung [Wed, 24 Nov 2021 02:33:16 +0000 (11:33 +0900)]
packaging: add u-boot spec file to build on obs

Add u-boot spec file to build on obs system.
xu3 config file is used to build, but it's not used anywhere.

Change-Id: Idc898fe52393f53c33b7f14cb5ad3d69d9a5b025
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: rpi4: use fdt already preloaded by the firmware 24/266924/1 submit/tizen/20211123.233157
Marek Szyprowski [Mon, 22 Nov 2021 11:29:39 +0000 (12:29 +0100)]
tizen: rpi4: use fdt already preloaded by the firmware

RPi4's firmware loads dtb and performs some fixups depending on the board
hardware revision. Simply reuse the fdt preloaded by the firmware instead
of loading it again from disk.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I47e23f61f7b86475922a85fcb464f31d6652f6b6

2 years agotizen: amlogic: adjust echo parameters after v2021.10 rebase
Marek Szyprowski [Wed, 17 Nov 2021 09:32:02 +0000 (10:32 +0100)]
tizen: amlogic: adjust echo parameters after v2021.10 rebase

To print a line without linefeed character now one has to use '-n'
parameter instead of the custom '\c' string used in older uboot releases.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: amlogic: vim3: adjust MMC device numbers for Tizen
Marek Szyprowski [Wed, 17 Nov 2021 09:28:09 +0000 (10:28 +0100)]
tizen: amlogic: vim3: adjust MMC device numbers for Tizen

Adjust MMC device numbers for SD to #0 and eMMC to #1 to match other
Tizen boards and simplify boot scripts.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: update specs after v2021.10 rebase and cleanup
Marek Szyprowski [Tue, 16 Nov 2021 13:05:00 +0000 (14:05 +0100)]
tizen: update specs after v2021.10 rebase and cleanup

Local, outdated copy of the dtc in tools/dtc has been removed, so the
specs need to be adjusted for this.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: update build version to v2021.10
Marek Szyprowski [Tue, 16 Nov 2021 13:01:24 +0000 (14:01 +0100)]
tizen: update build version to v2021.10

Update specs files to the proper base version.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: fix params.bin generation after v2021.10 rebase
Marek Szyprowski [Tue, 16 Nov 2021 12:46:04 +0000 (13:46 +0100)]
tizen: fix params.bin generation after v2021.10 rebase

Use the script provided by the mainline u-boot to generate default
params.bin instead of open coding its generation.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: amlogic: defconfig: adjust symbols after v2021.10 rebase
Marek Szyprowski [Tue, 16 Nov 2021 11:43:56 +0000 (12:43 +0100)]
tizen: amlogic: defconfig: adjust symbols after v2021.10 rebase

Move DFU related symbols to defconfig as needed by v2021.10 release.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi3: update the rpi3 script
Jaehoon Chung [Thu, 14 Oct 2021 23:11:37 +0000 (08:11 +0900)]
scripts: tizen: sd_fusing_rpi3: update the rpi3 script

To prevent wrong operation, check the result whether format is succeed
or not. If it's failed, exit this script.
And if there is already "mnt_tmp" directory, remove it to clear the
previous status.

It's changed the location to remove a partition table with dd command
with count is changed  from 16 to 32.
Because  it seems that partition table doesn't clear.

Change-Id: Id3eb739d5add8784d0f41eca8a7e4360a8a0dbfd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscript: sd_fusing_rpi3: fix the version checking
Jaehoon Chung [Tue, 5 Oct 2021 09:49:25 +0000 (18:49 +0900)]
script: sd_fusing_rpi3: fix the version checking

Fix the version checking about supporting delete option.

Change-Id: I02d638fc30d0b8afd575ca14031a238185e3c2a8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi: use delete option about newer sfdisk
Jaehoon Chung [Fri, 1 Oct 2021 03:09:25 +0000 (12:09 +0900)]
scripts: tizen: sd_fusing_rpi: use delete option about newer sfdisk

Use delete option before format.
It's more stable than using dd.

Change-Id: Ic77b543f49e7633027cbcf524c7c7a76a474d04e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscripts: tizen: sd_fusing: increase a ramdisk size to 32M
Jaehoon Chung [Tue, 17 Aug 2021 04:40:32 +0000 (13:40 +0900)]
scripts: tizen: sd_fusing: increase a ramdisk size to 32M

Increase a ramdisk size to 32M.

Change-Id: I17e062efffd25fb28fd564c529eb853b15327176
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_rpi: change a hal partition size in mbr_check
Jaehoon Chung [Fri, 13 Aug 2021 04:33:44 +0000 (13:33 +0900)]
samsung: tizen_rpi: change a hal partition size in mbr_check

Change a hal partition size in mbr_check.
It doesn't affect to check a real size, but it needs to share correct
information.

Change-Id: Iaa792f38c8fde924f6ad1179ed5949f1a2de0885
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscript: tizen: sd_fusing_rpi3: increase a hal partition size to 256M
Jaehoon Chung [Thu, 12 Aug 2021 02:55:05 +0000 (11:55 +0900)]
script: tizen: sd_fusing_rpi3: increase a hal partition size to 256M

Increase a hal partition size from 64M to 256M.

Change-Id: I650f2a5f7d946a6d5b251d7c5682b78afa8dd78f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: fix wrong dfu_info
Jaehoon Chung [Thu, 10 Jun 2021 05:50:15 +0000 (14:50 +0900)]
samsung: tizen_amlogic: fix wrong dfu_info

Fix wrong dfu_info without ";".

Change-Id: Iefbb1ffb43ee10e17977935e16618f7fc353f34d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscripts: tizen: sd_fusing: umount block part only when mounted
Seung-Woo Kim [Fri, 2 Apr 2021 02:28:48 +0000 (11:28 +0900)]
scripts: tizen: sd_fusing: umount block part only when mounted

The umount command is used without checking the block part is
really mounted. Umount part only when mounted.

The series for cleaning up fusing script is done, so bump up
minor version instead of sub version.

Change-Id: Ic665936838be4529973d63c6123db9a2c7acc7d7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Fix to check file existence
Seung-Woo Kim [Fri, 2 Apr 2021 02:14:04 +0000 (11:14 +0900)]
scripts: tizen: sd_fusing: Fix to check file existence

The script can be executed with absent file. Fix to check
file existence.

Change-Id: I2409c73a5dcf4ca011e029b2e3fca9525cd6026a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Fix error only with -b option
Seung-Woo Kim [Fri, 2 Apr 2021 01:55:52 +0000 (10:55 +0900)]
scripts: tizen: sd_fusing: Fix error only with -b option

If there is only -b option without real binary name, there was
error. Fix the error only with -b option.

Change-Id: I4affff4ae5f567b81601727f33161251db2457c3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Adjust log print
Seung-Woo Kim [Wed, 31 Mar 2021 07:40:22 +0000 (16:40 +0900)]
scripts: tizen: sd_fusing: Adjust log print

Show with proper tab indent for partition table when formatting
and show default behavior from warnning about format.

Change-Id: I36aac38f40780cf936a450c8f083c5ec1f207e6c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Use array for partition information
Seung-Woo Kim [Tue, 30 Mar 2021 07:40:27 +0000 (16:40 +0900)]
scripts: tizen: sd_fusing: Use array for partition information

Use array for partition information to remove duplication.

Change-Id: I6a8c5e3921cda24dc075321dcd5383dfda64149b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi3.sh: Add flashing hal.img
Seung-Woo Kim [Wed, 31 Mar 2021 11:31:57 +0000 (20:31 +0900)]
scripts: tizen: sd_fusing_rpi3.sh: Add flashing hal.img

As like dfu information of tizen_rpi, add flashing hal.img.

Change-Id: Ibfc26456dd6bf3a56df25573b9fb7b5f05d38dee
Ref: commit 9809b292e7c3 ("samsung: tizen_rpi: add hal.img in dfu information")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi3.sh: Change variable name properly
Seung-Woo Kim [Tue, 30 Mar 2021 07:33:05 +0000 (16:33 +0900)]
scripts: tizen: sd_fusing_rpi3.sh: Change variable name properly

The variable names, COL and ROW are used crossly from meaning.
Change the variable name properly.

Change-Id: If0ea313d2a275baf2c23261b2145141d2d79c276
Ref: commit 5dacf71810d7 ("scripts: odroid-xu4: remove non-necessary FUSE struct")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Use only part type from block device for fusing
Seung-Woo Kim [Tue, 30 Mar 2021 02:14:30 +0000 (11:14 +0900)]
scripts: tizen: sd_fusing: Use only part type from block device for fusing

Current block device parsing result gives both disk and part
types of block device and this can break parsing 1st partition
for "mmcblk1" case. Use only part type from block device for
fusing when flashing partition image.

Change-Id: I0ca393fd5ecd26d77939f16c9c412d00d18cb912
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agopackaging: update u-boot git repository url
Jaehoon Chung [Mon, 1 Mar 2021 22:50:05 +0000 (07:50 +0900)]
packaging: update u-boot git repository url

Update u-boot git repository URL from git.denx.de
to source.denx.de.

Change-Id: Ib9645ae340d9d0c45546baa0bc819d2ca1a1e395
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoboard: amlogic: odroid: adjust runtime detection for Tizen
Marek Szyprowski [Wed, 3 Feb 2021 14:36:14 +0000 (15:36 +0100)]
board: amlogic: odroid: adjust runtime detection for Tizen

Adjust file paths of board runtime detection for specific Tizen usage.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agosamsung: tizen_amlogic: add support for optional mainline kernel boot
Marek Szyprowski [Wed, 3 Feb 2021 08:35:48 +0000 (09:35 +0100)]
samsung: tizen_amlogic: add support for optional mainline kernel boot

Add support for optional mainline Linux kernel and DTBs. This requires
adjusting DTB file nameand console kernel cmdline parameters.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I977ec72596ddded6ed961ce0709ab40612682168

2 years agosamsung: tizen_amlogic: Use only meson64_odroidn2.dtb for OdroidN2 boards
Marek Szyprowski [Fri, 5 Feb 2021 13:58:20 +0000 (14:58 +0100)]
samsung: tizen_amlogic: Use only meson64_odroidn2.dtb for OdroidN2 boards

Switch OdroidN2 board to use meson64_odroidn2.dtb. For Tizen, the DRM
subsystem is enabled for the all Amlogic boards, so there is no need to
have separate dtb with the DRM enabled for OdroidN2 board.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie44445f950c8ffe1663ce8997dc5b15c7e0aaf79

2 years agotizen: amlogic: remove obsolete TIZEN_AMLOGIC_USE_VENDOR_KERNEL option
Marek Szyprowski [Wed, 3 Feb 2021 07:20:23 +0000 (08:20 +0100)]
tizen: amlogic: remove obsolete TIZEN_AMLOGIC_USE_VENDOR_KERNEL option

After a fix to vendor kernel, the workaround enabled by the
TIZEN_AMLOGIC_USE_VENDOR_KERNEL option is no longer needed.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie83030aa131779965ca09fcd8603b27b0d8fc87f

2 years agosamsung: tizen_amlogic: improve messages on boot
Marek Szyprowski [Wed, 3 Feb 2021 07:11:29 +0000 (08:11 +0100)]
samsung: tizen_amlogic: improve messages on boot

Show proper button name while checking THOR download mode and change
'reboot' to 'reboot reason' to make it clear what it is being checked.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I543b020ea3a9ae3459f7a57d07db410945f45676

2 years agorpi: use board_early_init_r to init PCI/USB and detect boot device
Marek Szyprowski [Fri, 29 Jan 2021 12:03:03 +0000 (13:03 +0100)]
rpi: use board_early_init_r to init PCI/USB and detect boot device

Move initialization of the PCI and the USB subsystems from the 'preboot'
command to the board's early_init_r() function and then try to detect a
boot device by accessing the MMC0 device. If it works, then set boot
device interface to 'mmc', if not, use 'usb'.

This allows the environment variales to be loaded from the proper
storage interface.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Idf06ba827167479510206587308875c8eedce892

2 years agoenv: fat: allow to dynamically set storage interface
Marek Szyprowski [Fri, 29 Jan 2021 12:01:31 +0000 (13:01 +0100)]
env: fat: allow to dynamically set storage interface

Add support for setting the FAT env storage interface dynamically by
defining board's own env_fat_get_interface() function.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I80eef53b9adff942524061c5a8be1bb583fea21f

2 years agotizen: rpi: add temporary workaround for usb boot
Marek Szyprowski [Thu, 28 Jan 2021 10:08:57 +0000 (11:08 +0100)]
tizen: rpi: add temporary workaround for usb boot

rootfs on USB device requires a bit more time to initialize and it is
probed asynchronously. This might happen after the initramfs is mounted
and init started, so add 2 seconds delay in case of USB boot to let
initramfs to detect the rootfs.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If4c1f12bd556ee3811b035c403ce832cf16c940b

2 years agotizen: rpi: move MBR check to tizen-boot-rpi{3,4}.scr
Marek Szyprowski [Thu, 28 Jan 2021 08:55:49 +0000 (09:55 +0100)]
tizen: rpi: move MBR check to tizen-boot-rpi{3,4}.scr

Move the MBR check to tizen-boot-rpi{3,4}.scr and adjust it to the
optional USB boot. User request is changed to 'Press ENTER to continue'
if verify fails to allow script continuation.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I45e530d63c449a21b4befbfeee0d55551d95b3c4

2 years agotizen: rpi: adjust commands to the optional usb boot
Marek Szyprowski [Wed, 27 Jan 2021 22:01:15 +0000 (23:01 +0100)]
tizen: rpi: adjust commands to the optional usb boot

Properly set and use $bootdev instead of mmc to support optional usb boot
in the future.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ib09bf36ade9062634f11538607768f65c2f6fc80

2 years agosamsung: tizen_amlogic: use 'reserved1' partition for HAL
Marek Szyprowski [Tue, 26 Jan 2021 11:11:59 +0000 (12:11 +0100)]
samsung: tizen_amlogic: use 'reserved1' partition for HAL

Use the 'reserved1' (64M) partition for the Tizen HAL partition image and
adjust the name of the remaining reserved partitions.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ieb879e48d55e7c25b3cf29bbd522cab22162ccbf

2 years agosamsung: tizen_rpi: check MBR partition layout from preboot
Marek Szyprowski [Fri, 22 Jan 2021 10:24:04 +0000 (11:24 +0100)]
samsung: tizen_rpi: check MBR partition layout from preboot

Verify if the MBR partition layout on SD card matches the one defined in
the bootloader.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I7c296a4f64e294a9dc510e0a248e83375bacf9cb

2 years agosamsung: tizen_rpi: remove support for the obsolete files
Marek Szyprowski [Thu, 21 Jan 2021 15:21:11 +0000 (16:21 +0100)]
samsung: tizen_rpi: remove support for the obsolete files

Remove no longer used 'u-boot.img' and 'optee.bin' images from the 'boot'
partition and dfu_alt_info image list.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Iaecb24070f80bb8860dc7c1faebff2cf6b2d1581

2 years agosamsung: tizen_rpi: make 'dfu_alt_info' static
Marek Szyprowski [Tue, 17 Nov 2020 10:16:28 +0000 (11:16 +0100)]
samsung: tizen_rpi: make 'dfu_alt_info' static

The data layout on the storage device is the same all the time for RPi3/4
boards and fully known during the compile time. Use this simple approach,
which is a bit more error proof for future changes. It also obsoletes the
custom code added to RPi boards.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I8f7211cdde50701418464419b774aeecc795efa1

2 years agosamsung: tizen_rpi: add support for the MBR command
Marek Szyprowski [Thu, 21 Jan 2021 14:52:05 +0000 (15:52 +0100)]
samsung: tizen_rpi: add support for the MBR command

Enable recently added 'mbr' command and define MBR partition table layout
based on the values from the current sd_fusing_rpi3.sh script.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I25e44f10365f95624cf6b85e09962671cf0c12c0

2 years agoscripts: tizen: sd_fusing_rpi3: rename 'RESERVED1' to 'HAL'
Marek Szyprowski [Mon, 25 Jan 2021 08:48:31 +0000 (09:48 +0100)]
scripts: tizen: sd_fusing_rpi3: rename 'RESERVED1' to 'HAL'

10th partition is used for HAL partition image, so use that name instead
of the 'RESERVED1'.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I3db5acd3a16954b7af4721c28223373f6ccc5aef

2 years agoscripts: tizen: sd_fusing_rpi3: fix size of the RESERVED2 partition
Marek Szyprowski [Mon, 25 Jan 2021 08:42:32 +0000 (09:42 +0100)]
scripts: tizen: sd_fusing_rpi3: fix size of the RESERVED2 partition

Older version of sd_fusing_rpi3.sh script had a bug, which results in
reduced size of the RESERVED2 partition to 125.5M instead of 128M. Adjust
the size of the RESERVED2 partition to 125M after the fixing sd_fusing
script to avoid further confusion, especially with the upcoming MBR
layout validation in the u-boot.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I41baf2e626aed0473539898b81fe809b4f7256b8

2 years agoscripts: tizen: sd_fusing_rpi3: adjust extended partition size calculation
Marek Szyprowski [Fri, 22 Jan 2021 10:57:03 +0000 (11:57 +0100)]
scripts: tizen: sd_fusing_rpi3: adjust extended partition size calculation

With so many partitions defined (currently 11), the extended partition
has to be larger regardless the sfdisk tool version, otherwise, the last
partition will be smaller than the requested size.

Without this fix, fdisk from util-linux 2.33.1 creates the last partition
of 125,5M instead of 128M.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ib4cc3608bc6050b59ece57e803246d465185d65b

2 years agoscript: tizen: remove sd_fusing_amlogic script
Jaehoon Chung [Tue, 19 Jan 2021 04:45:11 +0000 (13:45 +0900)]
script: tizen: remove sd_fusing_amlogic script

Remove sd_fusing_amlogic script.
Insteade, use 0-format.cmd file that is created from build script.
- ./tizen/build-amlogic.sh all
- It will be created tar file under output directory
- There should be amlogic_format_bootloader.tar.gz
- Use its format_bootloader.tar.gz

Change-Id: I9ef4dceb71d0830ebb2f69380f38d3ff63213bd9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: increase system-data size to 1.3G
Jaehoon Chung [Tue, 19 Jan 2021 04:44:09 +0000 (13:44 +0900)]
samsung: tizen_amlogic: increase system-data size to 1.3G

Increase system-data size from 512M to 1.3G.

Change-Id: I39398a900260eca7fd96d232ea95dc348a593804
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoconfigs: rpi4: disable CONFIG_USB_KEYBOARD
Jaehoon Chung [Mon, 18 Jan 2021 09:18:16 +0000 (18:18 +0900)]
configs: rpi4: disable CONFIG_USB_KEYBOARD

It doesn't need to enable CONFIG_USB_KEYBOARD on Tizen.
- It needs to enable USB_KEYBOARD when grub mode is used.

Change-Id: I8c7572d6f903037a9367351422010f72306e252f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoboard: rpi: add print_archinfo to display arch information
Jaehoon Chung [Fri, 15 Jan 2021 04:27:34 +0000 (13:27 +0900)]
board: rpi: add print_archinfo to display arch information

Current U-boot doesn't display a message about which architecture is
used. So Developer is difficult to know it by intuition.
This patch is displaying to CPU information with CONFIG_SYS_CPU.
- In mainline, it's used to display cpuinfo with CONFIG_DISPLAY_CPUINFO.
  But PRI4 doesn't implement print_cpuinfo(). Instead, display a cpuinfo
  in get_board_rev about RPI4 boards.

In RPI4 case,

U-Boot 2020.10-drity (Jan 15 2021 - 13:24:55 +0900)

DARM:  3.9 GiB
RPI 4 Model B (0xc03111)
CPU: armv7

Change-Id: I485194baa965065f44bac966d014ccfb31b9da60
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_rpi: add swiotlb value to 8192 on 32bit
Jaehoon Chung [Mon, 11 Jan 2021 07:36:57 +0000 (16:36 +0900)]
samsung: tizen_rpi: add swiotlb value to 8192 on 32bit

When 32bit kernel is booting, kernel is reserving memory for SWIOTLB about
64MB. It seems that doesn't need to use full size.
After set 'swiotlb=8192', SWIOTLB is reserved to 16MB.
Then it can save 48MB memory to use ZONE_DMA.

Change-Id: I1a1659cbff2120da755b14f1b373715bc10027c4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: support recovery and fota mode
Jaehoon Chung [Thu, 7 Jan 2021 07:54:47 +0000 (16:54 +0900)]
tizen: support recovery and fota mode

Support recovery and fota mode.
It will be entered to recovery or fota mode with value by passed
from reboot command.

Change-Id: Ia7d3c80de2fb28491e6cabfcfb37059e7325f259
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: amlogic: support gpio power key for odroid-c4
Seung-Woo Kim [Wed, 6 Jan 2021 10:46:42 +0000 (19:46 +0900)]
tizen: bootscript: amlogic: support gpio power key for odroid-c4

With gpio button, odroid-c4 can support gpio power. Set gpio power
key with PIN_11 from kernel boot_args.

GPIO pins are connected for ELB060675 button as like below:
    - out : PIN_11
    - vcc : PIN_9 (ground)
    - gnd : Not used.

Change-Id: I3aac017fe4a699b8576100cf3ee025a82054ee2d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoARM: dts: meson: change from ACTIVE_HIGH to ACTIVE_LOW
Jaehoon Chung [Wed, 6 Jan 2021 10:33:57 +0000 (19:33 +0900)]
ARM: dts: meson: change from ACTIVE_HIGH to ACTIVE_LOW

Whne button doesn't connect, it's always high.
So it needs to fix its case.
In our button's case,
- out : PIN_11
- vcc : GND
- gnd : Not used.

Change-Id: Ic8cf0f5853045cf181ad3c1c53e14e0fceb73b41
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: fix build error about not defined BUTTON_LAEBL
Jaehoon Chung [Wed, 6 Jan 2021 08:20:35 +0000 (17:20 +0900)]
samsung: tizen_amlogic: fix build error about not defined BUTTON_LAEBL

Fix build error about not defined BUTTON_LABEL.

Change-Id: Ifdc916c56c82aaac129ca764d8d501f4c0edcb26
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoconfigs: odroid-c4: support a button download mode
Jaehoon Chung [Wed, 6 Jan 2021 05:10:03 +0000 (14:10 +0900)]
configs: odroid-c4: support a button download mode

Support a button download mode.
If button is pressed, it will be entered to thor mode.

Change-Id: I1c1a4b8ff0d5d8b9b10b277876109b69ce2f02f8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>