On Wed, 14 Jan 2015 12:20:12 +0100
Michal Suchanek <[email protected]> wrote:

> On 14 January 2015 at 11:42, Lars Doelle <[email protected]> wrote:
> > Hi everyone,
> >
> > tuning device configuration for [[Inet K970]], I did not yet find
> > switches in the mainline kernel for the following features:
> >
> > 1) sunxi-keyboard
> 
> There is a mainline driver and I did not try it so far. The main
> blocker is that I did not find instruction for fel booting mainline
> u-boot and kernel. I can upload the u-boot but it searches for some
> syslinux configuration which is not found. Probably patching the
> default environment when SPL_FEL is selected would do the trick but
> did not get to it.

That's why I asked you earlier whether you want to be provided with
such instructions ;-)

I'm currently using the following u-boot patch for FEL booting u-boot,
kernel and initramfs (with serial console on MicroSD breakout):

diff --git a/include/configs/sunxi-common.h
b/include/configs/sunxi-common.h index f7e87a2..e958bd0 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -330,6 +330,11 @@
        CONSOLE_STDIN_SETTINGS \
        CONSOLE_STDOUT_SETTINGS
 
+#if defined(CONFIG_UART0_PORT_F)
+#undef BOOTENV
+#define BOOTENV "bootcmd=source ${scriptaddr}\0"
+#endif
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
        CONSOLE_ENV_SETTINGS \
        MEM_LAYOUT_ENV_SETTINGS \


The 'boot.scr' file needs to be uploaded to the right location in RAM
('scriptaddr', which is currently 0x43100000) using the 'fel' tool too.

And the DTB file needs to be patched to move UART0 pins to the SD card
slot. This DTB patching can be done automatically in u-boot on the
device (if u-boot is enhanced to implement this functionality), or on
your PC before uploading it to RAM using the 'fel' tool.

That's basically all. As you can see, not everything is perfect. But
*if* there is some interest in this functionality, then I *might* be
motivated to submit the necessary tweaks to the mainline u-boot for
making the use of MicroSD breakout easier. I had a preliminary off-list
discussion with Hans and Ian earlier, but they did not seem to be in
favour of this idea.

-- 
Best regards,
Siarhei Siamashka

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to