Armbian for Amlogic S805 and S802/S812


masteripper
 Share

40 40

Recommended Posts

53 minutes ago, RaptorSDS said:

the lastest old one is 5.77 with 3.10.108 and a desktop in the name , at 3.10.108 you have the dtb.img rename trick , at 4.19 and 5.xx Kernel you have toedit uENV.ini ; hope now it works

 

 

Hi

 

I download the 5.77 desktop one in the old folder (my minix is on kernel 3.10.33)

copy in root folder and rename a couple of dtb files to the dtb.img name

edit the uENV.ini just to be sure

 

but now the minix simply don't have any external signal, the tv lose the signal like the minix power off.

 

Do i need to try other dtb files and put in root folder (and rename them dtb.img) ?

 

Thank you

 

Link to post
Share on other sites

Donate and support the project!

1 hour ago, balbes150 said:

These are not the correct sources. Martin is developing the S8xx. I use its source code.

 

https://github.com/xdarklight/linux/branches

Thanks a lot, will try! But the kernel release should be the same for everyone, no? I can imagine that for integration branches you'll get not-yet-merged changes, but when it's a released kernel the sources should be the same for everyone. But maybe there's something I'm missing. 

Link to post
Share on other sites

@Nikeb do not edit uENV.ini at older roms please , neo x8-H plus should be meson8m2-n200-xx.dtb files be aware the first boot maybe around 5-10minutes , when no one of this work than

 

you could only extract android boot.img from your preinstalled Android and ask balbes150 to seperate and convert the dtb from android to armbian ; but i think extract boot.img is only possible with root android and maybe twrp as recovery image , also you can get a serial to usb adapter and solder/connect it to the onboard Serial port than you can also look at linux boot message

Link to post
Share on other sites

36 minutes ago, RaptorSDS said:

@Nikeb do not edit uENV.ini at older roms please , neo x8-H plus should be meson8m2-n200-xx.dtb files be aware the first boot maybe around 5-10minutes , when no one of this work than

 

you could only extract android boot.img from your preinstalled Android and ask balbes150 to seperate and convert the dtb from android to armbian ; but i think extract boot.img is only possible with root android and maybe twrp as recovery image , also you can get a serial to usb adapter and solder/connect it to the onboard Serial port than you can also look at linux boot message

 

Ok thanks but the dtb files are in 2 folders:
 

dtb

dtb-3.10.108

 

 

Wich folder should i get the dtb?

 

for every single file in one of the 2 folders i will copy in the root folder of the SD renaming it to "dtb.img"

 

Is that correct?

 

Thank you again

 

Link to post
Share on other sites

@Nikeb both folderss are the same dtb files , you should use the dtb folder (without -30.10) , correct copy and rename single file do not edit uEnv.ini and wait at test around 5-10min , after finish test without postive result than only possible way is serial console and extract boot.img from android , or (with a small chance that it help )take a newer image 20.05 and SSH over Ethernet without hdmi

Link to post
Share on other sites

On 4/7/2020 at 7:40 AM, RaptorSDS said:

@Nikeb both folderss are the same dtb files , you should use the dtb folder (without -30.10) , correct copy and rename single file do not edit uEnv.ini and wait at test around 5-10min , after finish test without postive result than only possible way is serial console and extract boot.img from android , or (with a small chance that it help )take a newer image 20.05 and SSH over Ethernet without hdmi

Thanks Raptor

 

I try every single dtb files but i find another way:

 

- Upgraded the Minix with the Lollipop version (not official but latest)

- Did again what i did

 

Right now i'm writing from the minix with the armbian on, and it's pretty amazing.

It's booting from my SD Card and it works very good.

 

I'm trying to install it on the ROM of the Minix (wich i guess is NAND) but i can't find the nand-sata-install script (command not found) or in the armbian-config (there is no such menù "Install")

Is something that i could do? use the armbian OS from the minix drive without SD Card?

 

I already update and upgrade the packages, i don't have wifi driver but i don't care honestly.

 

Thanks for your help

Link to post
Share on other sites

Quote

It's booting from my SD Card and it works very good.

nice to hear

as far as i know there is no install to nand script

 

5 hours ago, Nikeb said:

i don't have wifi driver

there are 3  different wifi chip AP6330 ;  BCM4335 and RTL8723BS  ;

please test in console

BCM-> "modprobe dhd" than  "ifconfig"

dhd is Broadcom Dongle Host Drive 

RTL-> edit "etc/modprobe/blacklist.conf" add "blacklist dhd" at the end "restart" than "modprobe 8723bs" and "ifconfig"

AP -> i have no idea when there is a driver

 

when wlan0 show up than edit "etc/modules-load.d/modules.conf" insert  driver module name or insert "modprobe xxx" at "etc/rc.local"

maybe helps

Link to post
Share on other sites

20 minutes ago, RaptorSDS said:

nice to hear

as far as i know there is no install to nand script

 

 

maybe helps

 

Hi Raptor

Minix has a emmc storage of 16 GB wich i would like to use as the main OS Drive, is there a way to make the emmc storage the system drive with armbian?

In that way i can boot armbian without using the SD Card.

 

I tried the script of guides and tutorials but i can't find the command.

 

Many thanks for the tips about the wifi, i m planning to use it only with wired connection, but i ll give it a look.

 

Thanks

 

Link to post
Share on other sites

7 hours ago, Nikeb said:

I'm trying to install it on the ROM of the Minix (wich i guess is NAND) but i can't find the nand-sata-install script (command not found) or in the armbian-config (there is no such menù "Install")

Is something that i could do? use the armbian OS from the minix drive without SD Card?

Assuming you are using one of balbes150's builds, then follow the information in this post:

 

Link to post
Share on other sites

6 minutes ago, SteeMan said:

Assuming you are using one of balbes150's builds, then follow the information in this post:

 

 

 

Hi

I m using Armbian_5.77_Aml-s812_Ubuntu_bionic_default_3.10.108_desktop_20190326.img

wich i don't know but i guess it could be a fork.

 

Anyway i can't find any script (even in the /root folder) that can make me install the OS in the emmc . I always update and upgrade all the packages and check with root permissions.

I even use the find command , but even the armlogic-config don't have the Install section

 

Thanks

 

 

 

 

Link to post
Share on other sites

15 minutes ago, Nikeb said:

I m using Armbian_5.77_Aml-s812_Ubuntu_bionic_default_3.10.108_desktop_20190326.img

The build you are using would be a build from balbes150's fork.  As you can see from the build date, that build is over a year old and on a kernel version (3.10) that is almost 7 years old.  If you value security you really shouldn't be using such an old build.  balbes150's work is now focused on current mainline kernels (5.4 or higher).  Since the build you are using predates my involvement in these forums, I have no idea if installation to internal storage is possible with what you are using.

Link to post
Share on other sites

42 minutes ago, SteeMan said:

The build you are using would be a build from balbes150's fork.  As you can see from the build date, that build is over a year old and on a kernel version (3.10) that is almost 7 years old.  If you value security you really shouldn't be using such an old build.  balbes150's work is now focused on current mainline kernels (5.4 or higher).  Since the build you are using predates my involvement in these forums, I have no idea if installation to internal storage is possible with what you are using.

 

Hi SteeMan

 

My minix has that age, i tried to use the new packages but i have to use the img that works for my kernel (3.10)

Just looking for a method to make the SD system works on my emmc

 

Thanks

 

 

 

Link to post
Share on other sites

@balbes150 i did not get wifi work with dts/dtb files , when i use dts from github linux ( inclusive precompile with cpp) i always get "deferred probe " loop , with dtb(from image) to dts and than edit -> i got "SDIO MMC failed highspeed mode " .  

it looks like many of the needed lines for wifi in meson8m2-m8s.dtb are there, like SDIO Slot 0  and Wifi32k Timer/PWM and ResetGPIO  but still nothing show up ( i can not find all information because dtb to dts are not 100% same as orginal dts ).

also some option have negativ effects to the box

i needed 5 restart from the old 3.10 kernel image because of sdio timeout and gpio32 loops now works again i think i stay at old image till someone get onboard wifi work again in newer 5.x kernel version .

maybe you can get me the orginal dts (maybe precompile) file for m8s that is inside your image ?

Link to post
Share on other sites

On 4/9/2020 at 7:29 PM, Nikeb said:

 

Hi SteeMan

 

My minix has that age, i tried to use the new packages but i have to use the img that works for my kernel (3.10)

Just looking for a method to make the SD system works on my emmc

 

Thanks

 

 

 


 

sorry to bother you guys again.

the 5.77 version works perfectly on the minix neo x8-h plus from the SD card, is there a way to cloning it to the native emmc of minix?
 

could i use clonezilla to put the entire system inside the emmc?
@balbes150 since the is not the nand-sata-install script is there a way to do it?


thanks

Link to post
Share on other sites

Hi there,

 

Thanks for making this port work.

 

I have "minix x8-h plus" and was finally able to boot using image Armbian_5.77_Aml-s812_Ubuntu_bionic_default_3.10.108_20190326. Couldn't get wifi to work, but doesn't really matter as I have working wired eth.

 

(As an aside - I am not sure if there are more up to date images that work for this hardware - the images listed in the OP didn't boot, perhaps are built for more modern hardware?)

 

Anyway, I am very pleased with the 5.77 build with one problem - it won't start without a monitor attached to HDMI. I hoped to have this as a headless linux server. Is there any magic setting that can make it boot without HDMI cable connected?

 

Thanks!

Link to post
Share on other sites

..I had no problems that the box didn't start, but I had just a tiny desktop via vnc, so my solution for the un-attached monitor was/is a cheap 3,50€ hdmi-fake-monitor-plug..maybe this could solve your non-boot-issue cheap and easy too?!

Link to post
Share on other sites

The new version of images 20200427. Everyone who has the opportunity to test the wired network for s805\s812\s802. This is important for the developer of this direction, Martin. It needs feedback on how the wired network will work in the latest version of the core. To check it, you need to run a simple test and post the results here.

 

    start iperf3 on your computer with: "iperf3 -s"
    on the device: "iperf3 -c <computer IP>"
    after that on the device: "iperf3 -c -R <computer IP>"

Link to post
Share on other sites

iperf3 results for following S812 device:

OTT M8S clone with 'S812-20160116 V1.2' and 'M9&M8_8bit_V1.1 2015/09/02'

Device has IP101GR 100Mbit phy, 2G/8G

To avoid conflict with display framebuffer (random noise over HDMI output) and dtb loading over kernel address space (9.4MB kernel) I used the following load addresses in s805_autoscript:

kernel 0x21000000
uInitrd 0x22000000
envvars 0x21F00000
dtb    0x21E00000

EMMC seems disabled in dtb by default

Booting with meson8m2-m8s.dtb

 

Results with Armbian_20.05.0_Aml-S812_buster_current_5.6.0-20200331

[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.01  sec   111 MBytes  92.6 Mbits/sec                  receiver

[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   113 MBytes  95.1 Mbits/sec    0             sender

Results with Armbian_20.05.3_Aml-S812_buster_current_5.7.0-rc3-gbec-4f44648-dirty-20200427

I can't get this to boot. It hangs at the stage of mounting root filesystem:

Freeing unused kernel memory:2048K
Run /init as init process
process /usr/bin/sh started with executable stack

Any suggestions on how to debug please? I have checked the SD card burn is OK and fsck on the partitions.

 

emulti

Link to post
Share on other sites

I'm not expecting testing images to be stable/working, but I am trying to help you with the testing as you requested.

Probably the failure to mount ROOTFS is not connected to the ethernet changes, but 5.7.0-rc2 did produce a stack trace on ethernet probing as below.

 

Tested M8S with the following:

 

5.6.0:

[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.01  sec   111 MBytes  92.9 Mbits/sec                  receiver

[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   113 MBytes  94.8 Mbits/sec    0             sender

5.7.0-rc2

Does not boot. Kernel oops related to ethernet interface with trace in dmesg:

Spoiler

------------[ cut here ]------------
[   32.504222] WARNING: CPU: 1 PID: 80 at drivers/base/dd.c:270 driver_deferred_probe_check_state+0x5c/0x68
[   32.513703] meson8b-dwmac c9410000.ethernet: deferred probe timeout, ignoring dependency
[   32.513705] Modules linked in:
[   32.524758] CPU: 1 PID: 80 Comm: kworker/1:2 Not tainted 5.7.0-rc2-aml-s812-g2faf66a18-dirty #20.05.3
[   32.533941] Hardware name: Amlogic Meson platform
[   32.538627] Workqueue: events deferred_probe_work_func
[   32.543752] [<c03119b8>] (unwind_backtrace) from [<c030bb6c>] (show_stack+0x10/0x14)
[   32.551458] [<c030bb6c>] (show_stack) from [<c0709b2c>] (dump_stack+0xc0/0xd4)
[   32.558653] [<c0709b2c>] (dump_stack) from [<c0345ae4>] (__warn+0xd0/0xf8)
[   32.565498] [<c0345ae4>] (__warn) from [<c0345ec8>] (warn_slowpath_fmt+0x94/0xb8)
[   32.572953] [<c0345ec8>] (warn_slowpath_fmt) from [<c09c1884>] (driver_deferred_probe_check_state+0x5c/0x68)
[   32.582751] [<c09c1884>] (driver_deferred_probe_check_state) from [<c09d8948>] (__genpd_dev_pm_attach+0x140/0x1a0)
[   32.593063] [<c09d8948>] (__genpd_dev_pm_attach) from [<c09cb54c>] (dev_pm_domain_attach+0x1c/0x24)
[   32.602078] [<c09cb54c>] (dev_pm_domain_attach) from [<c09c367c>] (platform_drv_probe+0x2c/0x98)
[   32.610833] [<c09c367c>] (platform_drv_probe) from [<c09c1690>] (really_probe+0x1e0/0x344)
[   32.619067] [<c09c1690>] (really_probe) from [<c09c1930>] (driver_probe_device+0x60/0x168)
[   32.627301] [<c09c1930>] (driver_probe_device) from [<c09bfb60>] (bus_for_each_drv+0x80/0xc4)
[   32.635796] [<c09bfb60>] (bus_for_each_drv) from [<c09c143c>] (__device_attach+0xd0/0x13c)
[   32.644031] [<c09c143c>] (__device_attach) from [<c09c0814>] (bus_probe_device+0x84/0x8c)
[   32.652179] [<c09c0814>] (bus_probe_device) from [<c09c0ca4>] (deferred_probe_work_func+0x64/0x90)
[   32.661110] [<c09c0ca4>] (deferred_probe_work_func) from [<c0361904>] (process_one_work+0x22c/0x568)
[   32.670211] [<c0361904>] (process_one_work) from [<c0361ee8>] (worker_thread+0x2a8/0x5d4)
[   32.678359] [<c0361ee8>] (worker_thread) from [<c0367eb4>] (kthread+0x150/0x154)
[   32.685727] [<c0367eb4>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c)
[   32.692917] Exception stack(0xedf31fb0 to 0xedf31ff8)
[   32.697946] 1fa0:                                     00000000 00000000 00000000 00000000
[   32.706095] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   32.714242] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   32.720842] ---[ end trace 20ce4bf72c18d31c ]---
[   32.725453] meson8b-dwmac: probe of c9410000.ethernet failed with error -110
[   32.732842] ------------[ cut here ]------------
[   32.737044] WARNING: CPU: 1 PID: 80 at drivers/base/dd.c:270 driver_deferred_probe_check_state+0x5c/0x68
[   32.746497] stmmaceth c9410000.ethernet: deferred probe timeout, ignoring dependency
[   32.746498] Modules linked in:
[   32.757238] CPU: 1 PID: 80 Comm: kworker/1:2 Tainted: G        W         5.7.0-rc2-aml-s812-g2faf66a18-dirty #20.05.3
[   32.767809] Hardware name: Amlogic Meson platform
[   32.772494] Workqueue: events deferred_probe_work_func
[   32.777613] [<c03119b8>] (unwind_backtrace) from [<c030bb6c>] (show_stack+0x10/0x14)
[   32.785324] [<c030bb6c>] (show_stack) from [<c0709b2c>] (dump_stack+0xc0/0xd4)
[   32.792519] [<c0709b2c>] (dump_stack) from [<c0345ae4>] (__warn+0xd0/0xf8)
[   32.799366] [<c0345ae4>] (__warn) from [<c0345ec8>] (warn_slowpath_fmt+0x94/0xb8)
[   32.806822] [<c0345ec8>] (warn_slowpath_fmt) from [<c09c1884>] (driver_deferred_probe_check_state+0x5c/0x68)
[   32.816617] [<c09c1884>] (driver_deferred_probe_check_state) from [<c09d8948>] (__genpd_dev_pm_attach+0x140/0x1a0)
[   32.826931] [<c09d8948>] (__genpd_dev_pm_attach) from [<c09cb54c>] (dev_pm_domain_attach+0x1c/0x24)
[   32.835946] [<c09cb54c>] (dev_pm_domain_attach) from [<c09c367c>] (platform_drv_probe+0x2c/0x98)
[   32.844701] [<c09c367c>] (platform_drv_probe) from [<c09c1690>] (really_probe+0x1e0/0x344)
[   32.852935] [<c09c1690>] (really_probe) from [<c09c1930>] (driver_probe_device+0x60/0x168)
[   32.861170] [<c09c1930>] (driver_probe_device) from [<c09bfb60>] (bus_for_each_drv+0x80/0xc4)
[   32.869665] [<c09bfb60>] (bus_for_each_drv) from [<c09c143c>] (__device_attach+0xd0/0x13c)
[   32.877900] [<c09c143c>] (__device_attach) from [<c09c0814>] (bus_probe_device+0x84/0x8c)
[   32.886048] [<c09c0814>] (bus_probe_device) from [<c09c0ca4>] (deferred_probe_work_func+0x64/0x90)
[   32.894978] [<c09c0ca4>] (deferred_probe_work_func) from [<c0361904>] (process_one_work+0x22c/0x568)
[   32.904079] [<c0361904>] (process_one_work) from [<c0361ee8>] (worker_thread+0x2a8/0x5d4)
[   32.912227] [<c0361ee8>] (worker_thread) from [<c0367eb4>] (kthread+0x150/0x154)
[   32.919595] [<c0367eb4>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c)
[   32.926786] Exception stack(0xedf31fb0 to 0xedf31ff8)
[   32.931814] 1fa0:                                     00000000 00000000 00000000 00000000
[   32.939964] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   32.948111] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   32.954707] ---[ end trace 20ce4bf72c18d31d ]---
[   32.959322] stmmaceth: probe of c9410000.ethernet failed with error -110

 

5.7.0-rc3

does not boot, as in above message, but no kernel oops related to ethernet interface.

 

I hope this information is helpful.

Emulti

Link to post
Share on other sites

From comparison analysis of the dmesg it seems that with 5.7.x-rc images the SDHC card is not detected with this m8S board.

Same with a kernel built manually from xdarklight's Git branch 'meson-mx-integration-5.8-20200411'.

 

With 5.6 images dmesg includes

     

meson-mx-sdhc c1108e00.mmc: got CD GPIO

and the SDHC partitions are detected.

 

On 5.7.x this line is absent and SDHC partitions are not detected. This would account for rootfs mounting failure.

I will investigate changes in dtb and report back.

emulti

Link to post
Share on other sites

 Share

40 40