avafinger / nanopi-a64-firmware

Nano Pi A64 firmware ( u-boot, kernel 3.10.104 / kernel 3.10.105 )
10 stars 5 forks source link
a64 nanopi ov5640 ubuntu ubuntu-minimal

NanoPi A64 Ubuntu Xenial Xerus 16.04 LXDE OS Image (firmware)

Update: Kernel version 3.10.105 with Blue Led (heartbeat)

Update 2: Camera with OV5640 activated and working

Update 3: HW decode instructions: https://github.com/avafinger/cedrusH264_vdpau_A64

Update 4: New Image with some fixes and goodies: see here

Update 5: fix for USB EHCI and OHCI plus Jack sound

Update 6: Firmware Image with support for PPP and GSM modems: here

Uodate 7: Kodi on NanoPi A64 (2019): https://github.com/avafinger/nanopi-a64-firmware#kodi-on-nanopi-a64

LXDE (Lightweight X11 Desktop Environment) is a desktop environment which is lightweight and fast and uses less RAM and less CPU while being a feature rich desktop environment.

If you want a richer desktop environment (but slower) you can install Ubuntu MATE on top of this Image and later de-install LXDE.

I use LXDE just because it is very fast, snappy and responsive! You can always improve, tweak and tune the way you want at any time. This is a very LEAN and MEAN OS image to play and learn how to extend it.

We will flash the OS image in a very unusual way and do it manually. Read instructions section on how to flash the image.

THIS IS a WiP

Disclaimer: Use at own risk

This is a LXDE OS image for the NanoPi A64

Install new Image with some fixes/improvement

Instructions for the new Image: here

Tested on NanoPi A64 board

Currently not working

NanoPi A64 Booting linux

NanoPI A64 Booting sequence

Camera (OV5640)

NanoPI A64 Booting sequence

HW decoding (1920x1080 H264) with cedrus

NanoPI A64 Cedrus

Screenshots

1080P 1080p60

Wifi bluetooth

Firefox bluetooth

htop bluetooth

RTL8189ETV (8189es) bluetooth

Issues

interesting reading can be found here and there:

https://www.suse.com/support/kb/doc/?id=7017652

https://github.com/longsleep/build-pine64-image/issues/51

https://github.com/openhab/openhabian/issues/215

Credits

Instructions

Requirements:

- We need a linux box

- Install md5sum

- PSU with at least 2.5A

- Good SD CARD, 8GB minimum (find a good and trusted brand)

- Good USB card reader (make sure you have a trusted USB card reader)

Assuming we have an USB card reader and our device is /dev/sdX where X is a letter [b,c..] and in our example (change to your letter) my device is 'c', /dev/sdc.

Clone our nanopi-a64-firmware

git clone https://github.com/avafinger/nanopi-a64-firmware
cd nanopi-a64-firmware/

Rebuild our rootfs

cat rootfs_nanopia64_rc1.tar.gz.0* > rootfs_nanopia64_rc1.tar.gz

Check if we have it correctly

md5sum rootfs_nanopia64_rc1.tar.gz

060b4d6f41fed693d578ab1bf94cd818  rootfs_nanopia64_rc1.tar.gz

Format the SD CARD and Flash (Warning: run as sudo or root and make sure you get the correct DEVICE letter)

Find your SD CARD device after insert the SD CARD type:

    dmesg|tail

If you have a USB card reader the format would be some thing like this

    dmesg|tail
    [97286.659006] sdc: detected capacity change from 15523119104 to 0
    [99023.137526] sd 4:0:0:0: [sdc] 30318592 512-byte logical blocks: (15.5 GB/14.4 GiB)
    [99023.147516] sd 4:0:0:0: [sdc] No Caching mode page found
    [99023.147521] sd 4:0:0:0: [sdc] Assuming drive cache: write through
    [99023.162514] sd 4:0:0:0: [sdc] No Caching mode page found
    [99023.162518] sd 4:0:0:0: [sdc] Assuming drive cache: write through
    [99023.168535]  sdc: sdc1 sdc2

Type:

sudo chmod +x *.sh
sudo ./format_sd.sh /dev/sdc
sudo ./flash_sd.sh /dev/sdc

Now we have our SD CARD with the OS Image, boot with this card and Enjoy!

user: ubuntu

pasw: ubuntu

Camera (OV5640)

To work with CAM500B (ov5640) and guvcview override a64-2GB.dtb with a64-2GB.dtb_OV5640

mv /media/ubuntu/a64/a64-2GB.dtb /media/ubuntu/a64/a64-2GB.dtb_OK
cp -af a64-2GB.dtb_OV5640 /media/ubuntu/a64/a64-2GB.dtb

Add the camera modules to /etc/modules

dw9714_act
ov5640
vfe_v4l2

Instructions for new Image

Rebuild our new kernel:

    cat rootfs_nanopia64_rc2.tar.gz.0* > rootfs_nanopia64_rc2.tar.gz

Check MD5 (must match with this):

    md5sum boot_nanopia64_rc2.tar.gz
    154350af7abdcf1062130c0b68bc1071  boot_nanopia64_rc2.tar.gz

and

    md5sum rootfs_nanopia64_rc2.tar.gz
    81be98d5f36ec6d42178028c0ab05fce  rootfs_nanopia64_rc2.tar.gz

Rebuild our new kernel:

    cat rootfs_nanopia64_rc3.tar.gz.0* > rootfs_nanopia64_rc3.tar.gz

Check MD5 (must match with this):

    md5sum boot_nanopia64_rc3.tar.gz
    e4d1ff4ba4740900ecaf65bd357b022b  boot_nanopia64_rc3.tar.gz

and

    md5sum rootfs_nanopia64_rc3.tar.gz
    ad78376f488e417e05e780007c2538e0  rootfs_nanopia64_rc3.tar.gz

Find your SD CARD device after insert the SD CARD type:

    dmesg|tail

If you have a USB card reader the format would be some thing like this

    dmesg|tail
    [97286.659006] sdc: detected capacity change from 15523119104 to 0
    [99023.137526] sd 4:0:0:0: [sdc] 30318592 512-byte logical blocks: (15.5 GB/14.4 GiB)
    [99023.147516] sd 4:0:0:0: [sdc] No Caching mode page found
    [99023.147521] sd 4:0:0:0: [sdc] Assuming drive cache: write through
    [99023.162514] sd 4:0:0:0: [sdc] No Caching mode page found
    [99023.162518] sd 4:0:0:0: [sdc] Assuming drive cache: write through
    [99023.168535]  sdc: sdc1 sdc2

If you have a SD CARD reader embedded in your laptop, the format would be like this:

    dmesg|tail
    [63376.329036] mmc0: new SDHC card at address 1234
    [63376.368234] mmcblk0: mmc0:1234 SA04G 3.67 GiB 
    [63376.368372]  mmcblk0: p1 p2

Flash New Image to SD CARD, type in shell:

    sudo chmod +x *.sh

or

    sudo ./burn_sdcard.sh /dev/mmcblk0

or

    sudo ./burn_sdcard_v2.sh /dev/mmcblk0

wait untill finish. Remove the SD CARD and boot you device with the SD CARD inserted and Enjoy!

Instructions for Firmware Image

There is an experimental Firmware Image to be flashed onto 8 GB sd card (or greater) using your preferred Disk Utility. It is highly recomended to use a good SD card and a good SDHC card Reader and Writer. Use a trusted brand.

It has been Zipped to save space with 7zip, please unzip before burning. Use Win32DiskImager or a good disk imager.

Kodi on NanoPi A64

There is a pre-release image with mainline kernel 4.20.17 with Kodi 18.3 RC1. If you would to test and see if works for you. Go to: https://github.com/avafinger/nanopi-a64-kodi

History Log: