Support for A10/A20

  • myxal  bethencsoft A10 should work in theory. I have no devices with it, so I didn't prepare anything. A1000 seems easy to support, but mainline DT is missing display related nodes. If anyone of you can provide me patch which would enable video output, I'll prepare test images.


    Note, A10 has limited memory throughput. It may have troubles pushing full HD image out.

    I don't know if I can help you. I have some linux distributions images with video output working, but I am not sure if it can help you.


    Surely you already know them anyway.


    My kernels for Allwinner A10 and A20-based devices - rm's homepage

    Mele: Ubuntu 12.10 armhf img – kernel upd – xbmc

  • Surely you already know them anyway.


    My kernels for Allwinner A10 and A20-based devices - rm's homepage

    Mele: Ubuntu 12.10 armhf img – kernel upd – xbmc

    No, I don't know them. Anyway, they are not helpful, because they are using BSP (vendor) kernel. Mainline uses different way to configure video output.

  • I'm also at a loss as to how to go about the display output DT patch - never did anything with DT, only know that it "describes HW" in lieu of autodiscovery like ACPI.

    Do you mean something like this, but for the sun4i-a10-a1000.dts ? Or is some other info needed?

  • Output on HDMI shows a short white line in the top left corner. My monitor is 1440p, and is showing that the input signal has the full resolution, but I don't think the A10 is capable of [email protected]? Seems like it's being driven beyond capabilities. Tried again on another monitor with 1920x1200, works OK.


    VGA output works ([email protected]), shows Linux console (same as observed on UART). Doesn't appear to actually boot, see attached log.

    log.txt

  • Nice,


    I will try it this evening on my Mele A1000. Should work also cause as far as I know it should be the same board, only a different enclosure.

  • Hi jernej would it be too bold asking for an image for inet97f2, as the dts should be part of the mainline kernel?

  • Re: A2000, not quite there yet...

    Code
    1. ## Flattened Device Tree blob at 43000000
    2. Booting using the fdt blob at 0x43000000
    3. Loading Device Tree to 49ff7000, end 49fffb32 ... OK
    4. Starting kernel ...
    5. [ 0.165777] sun4i-usb-phy 1c13400.phy: Couldn't get regulator usb1_vbus... Deferring probe
    6. [ 1.376003] debugfs: Directory '1c22c00.codec' with parent 'sun4i-codec' already present!
    7. [ 1.746350] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
    8. [ 1.754214] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 ]---
  • myxal please edit extlinux/extlinux.conf and remove "quiet". it should give much more information. Not sure what to fix or enable in kernel.

  • Hmm, seems to happen after finding the built-in USB WLAN:

    Files

  • Same error message on the MELE A1000. I have also a cubieboard A10. Is it just a matter of changing dtb's?

  • Not sure what's going on. Yes, just change dtb and change it's name in extlinux.conf. Make sure that at least one display output is enabled in DT.

  • A note to self, or possibly others running into the panic on boot: try the rootwait nousb kcmd options or combinations thereof.

  • Not sure what's going on.

    Probably something with these lines in dtb:


    Code
    1. &usbphy {
    2. usb1_vbus-supply = <&reg_usb1_vbus>;
    3. usb2_vbus-supply = <&reg_usb2_vbus>;
    4. status = "okay";
    5. };

    in most other dtb's it something like this:

    Code
    1. &usbphy {
    2. usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
    3. usb1_vbus-supply = <&reg_usb1_vbus>;
    4. usb2_vbus-supply = <&reg_usb2_vbus>;
    5. status = "okay";
    6. };
  • Code
    1. &usbphy {
    2.     usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
    3. usb1_vbus-supply = <&reg_usb1_vbus>;
    4. usb2_vbus-supply = <&reg_usb2_vbus>;
    5. status = "okay";
    6. };

    Not quite sure what that does, but here's what looks relevant from A1000 fex file: