Jump to content

Recommended Posts

Posted

Hi everyone,

 

I'm trying to get armbian running on an A20 based board. Been through the wikis (armbian and sunxi-linux) but I get a problem that is hard to figure out (for me).

The board is an old tablet, know as Inet K100 (mine is branded Storex), and I'm trying to get the legacy kernel running on it to get a desktop install with LCD etc...
Using sunxi-tools, I was able to get a fex file from the board.

 

  Reveal hidden contents

 

With the armbian git cloned into an Ubuntu Bionic VM, I added a board conf file in config/boards/storexk100.conf and moved the fex file in config/fex/storexk100.fex

  Reveal hidden contents

 

I'm also using this temporary userpatch to get the compilation going, but I'll need to go through it to get the right values inside the defconfig and dts files.

 

  Reveal hidden contents

 

During configuration, I use the default kernel parameters, I get an image, burned it to an sd card, and I was able to boot up until a point where I get this error. Side note, backlight flashes during boot, so either the fex or the defconfig file are loaded.

 

  Reveal hidden contents

 

So my obvious question is : why ? :) 
u-boot seems to be loading fine and then trying to load the kernel, so I guess u-boot is working fine, but the problems seems to come from the kernel.

Is there anything special to do with the kernel configuration for an A20 based board, like disabling some stuff ?
Or is it more likely due to a bad defconfig or dts file ?
I thought that the dts file was not needed for the legacy kernel, so do I really need it ?

 

Thanks for taking the time to answer my questions

Full boot log below.
 

 

  Reveal hidden contents


 

 

Posted

So, I might be going into the right direction. Since the kernel panic happened just after trying to load the USB stuff (ohci), I built the kernel without the OHCI and EHCI modules and I was able to boot into a debian minimal terminal appearing on the LCD.

From an old linux-sunxi mailing list post, it looks like I might have the wrong pin definition.


My boot log showed those lines, so I'll check into it.

<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed

If someone could answer a question about the build process in armbian, that would help. Since I'm trying to build the legacy (3.4.113-sun7i) kernel, shouldn't the .fex file be enough ? Do I have to write a defconfig and / or dts file ?

Thanks

 

Posted

Hi everyone,

 

So I guess my board is working now and I have the answer to my question : you only need to modify the fex file is you're building the legacy kernel.
My previous boot error (the kernel panic) was because the usb_drv_vbus_gpio for [usbc2] was undefined. Modified the fex file with this line to get it to boot with all usb ports working :
 

usb_drv_vbus_gpio = port:PH03<1><0><default><0>

I can boot to the desktop, now it's a matter of building modules etc... for the various components of this board.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines