On Mon, Feb 13, 2017 at 9:25 AM, Sascha Hauer wrote:
> Hi Vincente,
>
> On Sat, Feb 11, 2017 at 02:50:12PM +0100, Vicente Bergas wrote:
>> Hello
>>
>> Background on the issue
>> ###
>>
>> Some time ago functionality was add
Hello
Background on the issue
###
Some time ago functionality was added to enable OMAP4 to boot over USB:
https://git.pengutronix.de/cgit/barebox/commit/?id=6b4dc4d4f128bd22df4d022ad37285ce4858e1e8
That implementation uses the usb library stored in the OMAP4 ROM.
The use of th
On Mon, Jan 16, 2017 at 8:36 AM, Sascha Hauer wrote:
> On Sun, Jan 15, 2017 at 08:42:42PM +0100, Vicente Bergas wrote:
>> On Thu, Jan 12, 2017 at 11:27 AM, Ian Abbott wrote:
>> > On 11/01/17 20:07, Uwe Kleine-König wrote:
>> >>
>> >> On Wed, Jan 11, 2017
On Thu, Jan 12, 2017 at 11:27 AM, Ian Abbott wrote:
> On 11/01/17 20:07, Uwe Kleine-König wrote:
>>
>> On Wed, Jan 11, 2017 at 08:35:11PM +0100, Vicente Bergas wrote:
>>>
>>> Hello,
>>> when using scripts/checkpatch.pl it may report:
>>> Unesca
On Thu, Jan 12, 2017 at 11:27 AM, Ian Abbott wrote:
> On 11/01/17 20:07, Uwe Kleine-König wrote:
>>
>> On Wed, Jan 11, 2017 at 08:35:11PM +0100, Vicente Bergas wrote:
>>>
>>> Hello,
>>> when using scripts/checkpatch.pl it may report:
>>> Unesca
Hello,
when using scripts/checkpatch.pl it may report:
Unescaped left brace in regex is deprecated,
passed through in regex at scripts/checkpatch.pl line 2267.
This error is shown if a patch contains a left brace with
no preceding space like in:
if(condition){
Should the script be fixed or
Signed-off-by: Vicente Bergas
---
scripts/.gitignore | 1 +
scripts/Makefile| 4 +-
scripts/{omap4_usbboot => }/omap4_usbboot.c | 78 --
scripts/omap4_usbboot/.gitignore| 1 -
scripts/omap4_usbboot/Makef
CONFIG_CPU_V8 is checked against 'y' and 'n', but the case when the
variable is unset is not considered.
This patch only checks the variable against a single value 'y' so the
logic is always coherent even when the variable is unset.
Signed-off-by: Vicente Ber
detect_fs would usually mount a device on a directory,
so, use a device-specific type detection.
Signed-off-by: Vicente Bergas
---
common/filetype.c | 37 +++
fs/fs.c| 2 +-
include/filetype.h | 1 +
3 files changed, 41 insertions(+), 1
Hello,
as suggested I've improved the filesystem-type detection, but, as am not
familiar with barebox internals was fumbling a bit and the resulting
cdev_detect_type is a version of file_name_detect_type.
During testing it autodetected MBR+FAT and MBR+EXT4 correctly.
Regards,
Vicente.
Vi
formatted filesystem
is it to be a standard linux filesystem, which contains
boot-related files in /boot. So, when searching for the second stage
bootloader, try /boot/barebox.bin after not finding it in /barebox.bin
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/xload.c | 4 +++-
1 file
formatted filesystem
is it to be a standard linux filesystem, which contains
boot-related files in /boot. So, when searching for the second stage
bootloader, try /boot/barebox.bin after not finding it in /barebox.bin
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/xload.c | 4
1 file
ht that it would be better to share it.
By the way, while checking the patches with "scripts/checkpatch.pl" the script
itself reported several 'Unescaped left brace in regex is deprecated' warnings.
The perl version is v5.22.0.
Regards,
Vicente.
Vicente Bergas (3):
archosg
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/env/bin/init | 28 --
arch/arm/boards/archosg9/env/init/automount| 28 --
arch/arm/boards/archosg9/env/init/automount2 | 7 ++
.../boards/archosg9/env/menu/11-boot
Signed-off-by: Vicente Bergas
---
arch/arm/configs/archosg9_defconfig | 60 +++
arch/arm/configs/archosg9_xload_defconfig | 4 ---
2 files changed, 28 insertions(+), 36 deletions(-)
diff --git a/arch/arm/configs/archosg9_defconfig
b/arch/arm/configs
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/board.c | 111 ---
arch/arm/boards/archosg9/env/init/splash | 5 ++
arch/arm/boards/archosg9/mux.c | 20 +++---
arch/arm/configs/archosg9_defconfig | 7 +-
4 files changed, 123
The basic console used for USBboot has two different formattings,
one for text coming from the host and another for text coming from
the target.
This change makes both formattings readable regardless of the
console background color.
Signed-off-by: Vicente Bergas
---
scripts/omap4_usbboot
---
arch/arm/mach-omap/omap4_clock.c | 176 +++
1 file changed, 88 insertions(+), 88 deletions(-)
diff --git a/arch/arm/mach-omap/omap4_clock.c b/arch/arm/mach-omap/omap4_clock.c
index 268f7c1..72f72a1 100644
--- a/arch/arm/mach-omap/omap4_clock.c
+++ b/arch/ar
---
arch/arm/mach-omap/omap4_generic.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-omap/omap4_generic.c
b/arch/arm/mach-omap/omap4_generic.c
index 64b0024..6da5cae 100644
--- a/arch/arm/mach-omap/omap4_generic.c
+++ b/arch/arm/mach-omap/omap4_gener
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/omap4_generic.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap/omap4_generic.c
b/arch/arm/mach-omap/omap4_generic.c
index b33ed60..3d6ec25 100644
--- a/arch/arm/mach-omap/omap4_generic.c
+++ b
On OMAP4 SoC there is a SAR memory region (Save & Rescue)
where the ROM code reads the device to boot from.
This patch adds a way to set this.
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/Kconfig | 7 +++
arch/arm/mach-omap/Makefile | 1 +
Same as v3, but_boot order command is now wholly contained in arch/arm/mach-omap
Vicente Bergas (1):
OMAP4: add command to select next boot device priority
arch/arm/mach-omap/Kconfig | 7 +++
arch/arm/mach-omap/Makefile | 1 +
arch/arm/mach-omap
This is the third version of this patch series. It only includes the only
unapplied patch with all modifications from feedback, thanks Sascha.
Vicente Bergas (1):
OMAP4: add command to select next boot device priority
arch/arm/mach-omap/Makefile | 1 +
arch/arm/mach-omap
On OMAP4 SoC there is a SAR memory region (Save & Rescue)
where the ROM code reads the device to boot from.
This patch adds a way to set this.
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/Makefile | 1 +
arch/arm/mach-omap/boot_order.c
The number of "#if" has been reduced to have less obfuscation, now have the
three keys or have none of them
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/board.c | 22 ++
arch/arm/boards/archosg9/env/bin/init
If a key is pressed but not released before booting and the key is
connected to an active low gpio it's not detected. This patch solves
that.
Signed-off-by: Vicente Bergas
---
drivers/input/gpio_keys.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/input/gpio_keys.c b/dr
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/archos_features.c | 58 +-
1 file changed, 16 insertions(+), 42 deletions(-)
diff --git a/arch/arm/boards/archosg9/archos_features.c
b/arch/arm/boards/archosg9/archos_features.c
index 5d93403..b396734
this way serial-over-usb driver is registered always, but the device is
only registered when booting from usb.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/board.c | 6 +-
drivers/serial/serial_omap4_usbboot.c | 2 --
2 files changed, 5 insertions(+), 3 deletions(-)
diff
This patch is not intended to be applied because has already been rejected.
It's here only for completeness as the only solution available nowadays for
the problem it solves.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/env/boot/sd-card-android | 2 +-
arch/arm/b
This is the second version of this patch series, it includes all feedback
received
which is greatly appreciated.
Vicente Bergas (6):
OMAP4: check for usb availability at device registration
ArchosG9: zero all features before setting them
gpio_keys: detect keys pressed before booting
On OMAP4 SoC there is a SAR memory region (Save & Rescue) where the ROM
code reads the device to boot from.
This patch adds a way to set this.
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/include/mach/omap4-silicon.h | 20 +++
arch/arm/mach-omap/omap4_generic.c
Done as suggested.
Thanks for the suggestion.
Signed-off-by: Vicente Bergas
---
drivers/input/Kconfig | 7 +++
drivers/input/Makefile | 1 +
drivers/input/twl6030_pwrbtn.c | 112 +
include/twl6030_pwrbtn.h | 9
4 files
getopt: done as suggested
bootsrc: done as suggested
IMO this command will be used 99% of the times followed by a reset.
The -r option will avoid the burden of executing always the same two commands.
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/include/mach/omap4-silicon.h | 20
h leaves the same features, which are required,
but still has the changes for zeroing each feature before setting it.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/archos_features.c | 58 +-
1 file changed, 16 insertions(+), 42 deletions(-)
diff --git
The first three patches are generic.
The last patch in this series depends on:
"[PATCH 0/9] Add support for booting ArchosG9 from sd-card"
Vicente Bergas (4):
gpio_keys: detect keys pressed before booting.
twl6030: add power button as an input key
OMAP4: add command to select
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/board.c | 25 +++
arch/arm/boards/archosg9/env/bin/init | 28 ++
arch/arm/boards/archosg9/env/boot/usb-android | 2 +-
arch/arm/boards/archosg9/env/boot/usb-linux | 2
Signed-off-by: Vicente Bergas
---
drivers/input/Kconfig | 7
drivers/input/Makefile | 1 +
drivers/input/twl6030_pwrbtn.c | 95 ++
include/twl6030_pwrbtn.h | 23 ++
4 files changed, 126 insertions(+)
create mode
On OMAP4 SoC there is a SAR memory region (Save & Rescue) where the ROM
code reads the device to boot from.
This patch adds a way to set this.
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/include/mach/omap4-silicon.h | 20 ++
arch/arm/mach-omap/omap4_generic.c
If a key is pressed but not released before booting and the key is
connected to an active low gpio it's not detected. This patch solves
that.
Signed-off-by: Vicente Bergas
---
drivers/input/gpio_keys.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/input/gpio_keys.c b/dr
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/board.c | 1 -
arch/arm/boards/archosg9/env/boot/sd-card-android | 11
arch/arm/boards/archosg9/env/boot/sd-card-linux | 17 ++
arch/arm/boards/archosg9/env/boot/usb-android | 11
arch/arm/boards
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/archos_features.c | 414 ++---
arch/arm/boards/archosg9/archos_features.h | 39 +++
2 files changed, 412 insertions(+), 41 deletions(-)
diff --git a/arch/arm/boards/archosg9/archos_features.c
b/arch/arm/boards
boot-menu-add-entry should not add menu entries to non-existent menus
to solve the issue a new parameter is passed indicating the current menu
Signed-off-by: Vicente Bergas
---
arch/arm/boards/at91sam9m10ihd/env/boot/android | 2 +-
arch/arm/boards/at91sam9m10ihd/env/boot/mmc
This patch series ends up adding sd-card booting support to archosg9 boards.
First 8 patches are improvements and minor fixes found during the process.
Vicente Bergas (9):
defaultenv-2: don't load nonexistent file
omap4_romusb: rename omap4_usbboot_pdata to omap4_usbboot_data
omap
Signed-off-by: Vicente Bergas
---
arch/arm/configs/panda_xload_defconfig | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/configs/panda_xload_defconfig
b/arch/arm/configs/panda_xload_defconfig
index 1ed20a1..5cedcff 100644
--- a/arch/arm/configs/panda_xload_defconfig
+++ b/arch
some sort of UART setup has to be done in order to use PUTC_LL
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/include/mach/debug_ll.h | 21 +
1 file changed, 21 insertions(+)
diff --git a/arch/arm/mach-omap/include/mach/debug_ll.h
b/arch/arm/mach-omap/include/mach
use a more generic UART selection on OMAP so it can be extended to
other OMAPs
Signed-off-by: Vicente Bergas
---
arch/arm/boards/omap3evm/board.c | 4 ++--
arch/arm/boards/omap3evm/lowlevel.c| 4 ++--
arch/arm/mach-omap/Kconfig | 11 ++-
arch/arm
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/include/mach/omap4_rom_usb.h | 3 +++
arch/arm/mach-omap/omap4_rom_usb.c | 23 +++
drivers/serial/serial_omap4_usbboot.c | 2 ++
3 files changed, 16 insertions(+), 12 deletions(-)
diff --git a
omap4_usbboot_pdata is not a pointer, so remove the "p"
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/omap4_rom_usb.c | 72 +++---
1 file changed, 36 insertions(+), 36 deletions(-)
diff --git a/arch/arm/mach-omap/omap4_rom_usb.c
b/arch/arm
Signed-off-by: Vicente Bergas
---
defaultenv-2/base/bin/init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/defaultenv-2/base/bin/init b/defaultenv-2/base/bin/init
index e4a7fee..6a658d1 100644
--- a/defaultenv-2/base/bin/init
+++ b/defaultenv-2/base/bin/init
@@ -13,7 +13,7
>From previous patch that replaced printf with puts:
puts adds it's own line ending, so do not append it manually
Signed-off-by: Vicente Bergas
---
scripts/omap4_usbboot.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/omap4_usbboot.c b/scripts/omap4_u
Add the initrd start and end address to the DT, code comes from u-boot.
Signed-off-by: Vicente Bergas
---
arch/arm/lib/armlinux.c | 2 ++
common/oftree.c | 66 +
include/of.h| 8 ++
3 files changed, 76 insertions(+)
diff
On ArchosG9 the second stage low-level init was the fallback default.
Now that the low-level init is forcibly enabled it has to be skipped
when already executed from first stage.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/lowlevel.c | 7 +--
1 file changed, 5 insertions
ed and only provides generic support,
nothing related to the tablet.
The patches also include the changes reflecting the received feedback, thanks!
Vicente Bergas (2):
ArchosG9: solve regression in second stage lowlevel init
DeviceTree: add support for initrd in the DT
arch/arm/boards/arch
Add the initrd start and end address to the DT, code comes from u-boot.
Signed-off-by: Vicente Bergas
---
arch/arm/lib/armlinux.c | 2 ++
common/oftree.c | 66 +
include/of.h| 1 +
3 files changed, 69 insertions(+)
diff
it before submitting and it works fine.
Thank you for your comments.
Regards,
Vicente.
Vicente Bergas (2):
DeviceTree: add support for initrd in the DT
ArchosG9: boot linux kernel with DT
arch/arm/boards/archosg9/env/config | 1 +
arch/arm/configs/archosg9_defconfig
Provide a device tree to the OS.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/env/config | 1 +
arch/arm/configs/archosg9_defconfig | 4
arch/arm/configs/archosg9_xload_defconfig | 1 +
3 files changed, 6 insertions(+)
diff --git a/arch/arm/boards/archosg9/env
Add the initrd start and end address to the DT, code comes from u-boot.
Use this addition on the ArchosG9 board as an example.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/env/config | 1 +
arch/arm/configs/archosg9_defconfig | 4 ++
arch/arm/configs
On ArchosG9 the second stage low-level init was the fallback default.
Now that the low-level init is forcibly enabled it has to be skipped
when already executed from first stage.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/lowlevel.c | 7 +--
1 file changed, 5 insertions
ed to atag_appender
it's not a function, it's a pointer to a function. Can it have a
prototype other than it's own declaration?
All non-related changes has been dropped. They were checkpatch.pl
warnings unrelated to this patch.
Regards,
Vicente.
Signed-off-by: Vicente Bergas
-
equest for inclusion
The feedback is always appreciated.
Regarding inclusion, I know this is a very Archos specific patch, so I'll
understand if it's rejected.
Vicente Bergas (1):
feature_list: a way to pass hardware info to the kernel
arch/arm/Kconfig | 12 +
arch
The feature list is a non-standard alternative to the device tree
to pass the hardware description to the kernel.
This is the way used by Archos on it's android kernel, so it's required
to boot such a kernel.
Signed-off-by: Vicente Bergas
---
arch/arm/Kconfig
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/board.c| 1 +
arch/arm/boards/archosg9/lowlevel.c | 18 +-
arch/arm/boards/archosg9/mux.c | 654 +---
3 files changed, 244 insertions(+), 429 deletions(-)
diff --git a/arch/arm/boards
Signed-off-by: Vicente Bergas
---
arch/arm/mach-omap/include/mach/omap4-clock.h | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-omap/include/mach/omap4-clock.h
b/arch/arm/mach-omap/include/mach/omap4-clock.h
index 469c716..8f49aa3 100644
--- a
archos g9 tablet reorder initialization: first voltages then clocks
Vicente Bergas (3):
OMAP4: use OPPs recommended in datasheet
OMAP4_USB: more stable communications
ARCHOS: use manufacturer values for pad_conf and reorder
initialization
arch/arm/boards/archosg9/board.c | 1
Signed-off-by: Vicente Bergas
---
scripts/omap4_usbboot.c | 68 ++---
scripts/usb_linux.c | 4 +--
2 files changed, 44 insertions(+), 28 deletions(-)
diff --git a/scripts/omap4_usbboot.c b/scripts/omap4_usbboot.c
index a276c29..9d8e2a6 100644
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/env/config | 4 +++-
arch/arm/boards/archosg9/env/init/usbboot | 9 +
arch/arm/configs/archosg9_defconfig | 2 +-
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boards/archosg9/env/config
b
The option of reading the file at once was discarded because
the option of increasing the buffer size provided almost the
same benefit.
Signed-off-by: Vicente Bergas
---
common/uimage.c | 24
1 file changed, 24 deletions(-)
diff --git a/common/uimage.c b/common
t checking before.
The other change is just the inverse: a submitted patch that was not applied.
Vicente Bergas (2):
uimage: fix misunderstanding in common/uimage.c
archosg9: improve configuration
arch/arm/boards/archosg9/env/config | 4 +++-
arch/arm/boards/archosg9/env/init/us
012-March/119150.html
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/mux.c | 9 +
arch/arm/mach-omap/include/mach/omap4-clock.h | 2 +-
arch/arm/mach-omap/include/mach/omap4-silicon.h | 2 +-
arch/arm/mach-omap/omap4_clock.c| 37 +++
012-March/119150.html
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/mux.c | 9 +
arch/arm/mach-omap/include/mach/omap4-clock.h | 2 +-
arch/arm/mach-omap/include/mach/omap4-silicon.h | 2 +-
arch/arm/mach-omap/omap4_clock.c| 37 +++
Modified voltage setting to do a clean switch.
See: http://lists.denx.de/pipermail/u-boot/2012-March/119149.html
Also changed vdd_mpu and VCORE2 to 1.2 volt as in u-boot.
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/mux.c | 9 +
arch/arm/mach-omap/include
, remaining PSR bits renamed to
match the linux ones
disable interrupts at barebox exit
speed up initrd transfer
cleaner voltage switching
For the "OMAP4: clean voltage switch" patch I'm not sure if the changes are
compatible with other boards.
Vicente Bergas (6):
ArchosG9:
Signed-off-by: Vicente Bergas
---
common/uimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/uimage.c b/common/uimage.c
index c72db41..b58dff1 100644
--- a/common/uimage.c
+++ b/common/uimage.c
@@ -373,7 +373,7 @@ static int uimage_sdram_flush(void *buf, unsigned
Signed-off-by: Vicente Bergas
---
arch/arm/cpu/exceptions.S | 1 -
arch/arm/cpu/interrupts.c | 6 ++---
arch/arm/include/asm/ptrace.h | 55 +++
3 files changed, 33 insertions(+), 29 deletions(-)
diff --git a/arch/arm/cpu/exceptions.S b/arch/arm
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/lowlevel.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/boards/archosg9/lowlevel.c
b/arch/arm/boards/archosg9/lowlevel.c
index fa5be1d..d0506bb 100644
--- a/arch/arm/boards/archosg9/lowlevel.c
+++ b
Signed-off-by: Vicente Bergas
---
arch/arm/cpu/cpu.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c
index 51da3b5..4cf4efa 100644
--- a/arch/arm/cpu/cpu.c
+++ b/arch/arm/cpu/cpu.c
@@ -31,6 +31,7 @@
#include
#include
#include
Signed-off-by: Vicente Bergas
---
arch/arm/boards/archosg9/env/config | 4 +++-
arch/arm/boards/archosg9/env/init/usbboot | 9 +
arch/arm/configs/archosg9_defconfig | 2 +-
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boards/archosg9/env/config
b
77 matches
Mail list logo