Jump to content

Armbian for Amlogic S805


jongerenchaos
 Share

Recommended Posts

Search Before Posting!

Hello balbes150,

 

I would like to thank you for your work.

I have an Inphic SPOT i5 S805 without USB port (well, it had micro-USB at first but this port fell down litterally, due to really bad soldering).

 

With the files you provided and the comment both on this topic and the one from freaktab forum ( http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/s805/others-ab/534054-inphic-spot-i5-s805-media-player ), I've managed to install and make run Ubuntu Xenial Server (Armbian_5.32_S805_Ubuntu_xenial_3.10.33_server_20170821.img).


It works, thanks ! :)


This little box will now be dedicated to some networked tasks. For the moment I've installed Pi-Hole to get an Ad-blocker for my whole private network. 

 

There are some alerts that hostname service doesn't work but here is a manual fix : https://github.com/openbmc/openbmc/issues/1949#issuecomment-315020684

Do you know if there is any plan to release an image with mainline kernel for this box ?

Link to comment
Share on other sites

10 hours ago, verb said:

Hello can anyone explain me what does this two scripts do  -> s805_autoscript  and aml_autoscript 

aml_autoscript - enables multi-upload (one time procedure).

s805_autoscript script that starts the system from removable media, taking into account the particularities of each system.

Link to comment
Share on other sites

Image update S805 20180112.

Updated kernel to version 3.10.99. Added screen mode 1080p. This mode is enabled by default. To switch to 720p you need to edit first line of script /boot/hdmi.sh. For smooth playback of test video I recommend to reduce the window size of the reproduced video to the size that would have enough system resources for smooth video playback.

Link to comment
Share on other sites

Hello balbes150, you last image works a lot better then the previous one.  Although my wifi is not working, but now it boot's a lot faster and sounds works.  I'm on a mk808b plus and the needed dtb is M201-1G.

Link to comment
Share on other sites

On 14.01.2018 at 11:34 AM, verb said:

please suggest any method to install aml_autoscript from usb flash drive . I have tried https://yadi.sk/d/c9kY4tuLuPF3Y/v04

and i have ended with  "E:footer is wrong  ; signature verification failed"

 

ps: I don;t need to multiboot ( i need to install armbian to nand  and no need to keep android)

There are only two options 1. With SD card in automatic mode 2. From the console UART in the manual you can run all the commands from any media (SD or USB).

 

18 hours ago, roel said:

you last image works a lot better then the previous one.  Although my wifi is not working, but now it boot's a lot faster and sounds works.  I'm on a mk808b plus and the needed dtb is M201-1G.

Have you tried to load the WiFi module ?

Link to comment
Share on other sites

Hello balbes150 i have managed to boot from UART  and here is the output :

Spoiler



##### VDDEE voltage = 0x044c1100

CPU clock is 792MHz


 board_id :00000000
DDR mode: 32 bit mode (auto)
DDR size: 1GB (auto)
DDR check: Pass!
DDR clock: 636MHz with 2T mode
DDR pll bypass: Disabled
DDR init use : 17434 us

HHH
ucl decompress...pass
0x12345678
Boot from internal device 1st NAND

TE : 219798

System Started


U-boot-00000-gcc16b01(m8b_m201_v1@) (Apr 18 2016 - 10:52:29)

clr h-ram
DRAM:  1 GiB
relocation Offset is: 0feb8000
show partition table: 
part: 0, name :       logo, size : 2000000
part: 1, name :   recovery, size : 2000000
part: 2, name :       misc, size : 2000000
part: 3, name :       boot, size : 2000000
part: 4, name :     system, size : 40000000
part: 5, name :      cache, size : 20000000
part: 6, name :       data, size : end 
aml_card_type=0x100
MMC:   [mmc_register] add mmc dev_num=0, port=1, if_type=6
[mmc_register] add mmc dev_num=1, port=2, if_type=6
SDIO Port B: 0, SDIO Port C: 1
power init
out reg=c110804c,value=dfffffff
IR init done!
register usb cfg[0][1] = 1ff67b64
register usb cfg[2][0] = 1ff6ab00
NAND:  NAND BOOT: boot_device_flag 1
Nand PHY driver Version: 2.01.001.0004 (c) 2013 Amlogic Inc.
amlnf_phy_init : amlnf init flag 0
NAND device id: 2c 68 4 4a a9 0 0 0
detect NAND device: C revision NAND 4GiB MT29F32G-C
nand chip ce mask 1
bus_cycle=6, bus_timing=8,system=3.9ns,flash->T_REA =16,flash->T_RHOH=15
NAND CKECK  : arg nbbt: arg_valid= 1, valid_blk_addr = 4, valid_page_addr = 0
NAND CKECK  : arg ncnf: arg_valid= 1, valid_blk_addr = 6, valid_page_addr = 0
NAND CKECK  : arg nkey: arg_valid= 1, valid_blk_addr = 5, valid_page_addr = 22
i=0,register --- nand_key
NAND CKECK  : arg nenv: arg_valid= 1, valid_blk_addr = 9, valid_page_addr = 238
NAND CKECK  : arg phyp: arg_valid= 1, valid_blk_addr = 7, valid_page_addr = 1
amlnand_phydev_init,1172,phydev->offset=0,phydev->size=400000
amlnand_phydev_init,1172,phydev->offset=3400000,phydev->size=23c00000
amlnand_phydev_init,1172,phydev->offset=27000000,phydev->size=4fc00000
amlnand_phydev_init,1172,phydev->offset=76c00000,phydev->size=89400000
nfboot    : offset: 0x000000000000 -0x000000400000 : partitons 0 : single_chip single_plane
nfcache   : offset: 0x000003400000 -0x000023c00000 : partitons 1 : single_chip multi_plane
nfcode    : offset: 0x000027000000 -0x00004fc00000 : partitons 5 : single_chip multi_plane
nfdata    : offset: 0x000076c00000 -0x000089400000 : partitons 1 : single_chip multi_plane
bad block count = 0
bad block count = 0
bad block count = 0
bad block count = 0
amlnf_logic_init: START
amlnf_logic_init:  COMPLETE
get_boot_device_flag: init_ret 0
get_boot_device_flag NAND BOOT: 
NAND BOOT,nand_env_relocate_spec : env_relocate_spec 49 
uboot env amlnf_env_read : ####
set_storage_device_flag: store 1
vpu clk_level in dts: 3
set vpu clk: 182150000Hz, readback: 182150000Hz(0x701)
Net:   Meson_Ethernet
init suspend firmware done. (ret:0)
cvbs trimming.1.v5: 0xa0, 0x0
hdmi tx power init
TV mode 576cvbs selected.
vdac open.1 = 0x1, 0x0
mode is: 4
viu chan = 1
config HPLL
config HPLL done
reboot_mode=charging
efuse version is not selected.
Hit Enter key to stop autoboot -- :  0 
exit abortboot: 0
(Re)start USB(0)...
USB0:   dwc_usb driver version: 2.94 6-June-2012
USB (1) peri reg base: c1108820
USB (1) use clock source: XTAL input
USB (1) base addr: 0xc90c0000
Force id mode: Host
dwc_otg: Highspeed device found !

scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
reading s805_autoscript

1991 bytes read
## Executing script at 11000000
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 0 **

** Unable to use mmc 0:1 for fatload **
reading uInitrd

3331991 bytes read
reading uImage

 

i guess  there is something wrong with my s805_autoscript ?? ( i have waited for more then 30min and nothing outputs)  Also i have burned this image on my flash drive and i have copy paste meson8b_m201_1G.dtb  to the root dir as   dtb.img

Link to comment
Share on other sites

Hi All, I hope someone can help me here, I have Armbian_5.37_S805_Ubuntu_xenial_3.10.99_server_20180112.img running on my MXQ box and installed all dev tools to build crypto coins but when I try to build one the system freezes and I have to reboot to get it working again, I would like to run the crypto coin deamon on the mxq but can't get it to build, it's seems like its running out of ram to build the project.

 

Regards,

Andy.

Link to comment
Share on other sites

16 hours ago, verb said:

i guess  there is something wrong with my s805_autoscript ?? ( i have waited for more then 30min and nothing outputs)  Also i have burned this image on my flash drive and i have copy paste meson8b_m201_1G.dtb  to the root dir as   dtb.img

The system hangs on reading uImage from a USB drive. Try to stop the launch in the console UART and execute manually the command "printenv" and "help". The result show here.

 

 

Link to comment
Share on other sites

16 hours ago, Andy Dawson said:

Hi All, I hope someone can help me here, I have Armbian_5.37_S805_Ubuntu_xenial_3.10.99_server_20180112.img running on my MXQ box and installed all dev tools to build crypto coins but when I try to build one the system freezes and I have to reboot to get it working again, I would like to run the crypto coin deamon on the mxq but can't get it to build, it's seems like its running out of ram to build the project.

 

Regards,

Andy.

I have also tried to setup zram but I get the following :-

 

sudo modprobe zram
modprobe: FATAL: Module zram not found in directory /lib/modules/3.10.99

 

Please Help.

Link to comment
Share on other sites

 

On 1/16/2018 at 11:34 AM, balbes150 said:

The system hangs on reading uImage from a USB drive. Try to stop the launch in the console UART and execute manually the command "printenv" and "help". The result show here.

 

 

 

here is the output of printenv :

Link

here is the output of help :

Link

 

and these are the commands i execute from  UART:

 

defenv
setenv bootfromnand 0
setenv start_usb_autoscript "if fatload usb 0 11000000 s805_autoscript; then autoscr 11000000; fi;
 if fatload usb 1 11000000 s805_autoscript; then autoscr 11000000; fi;
if fatload usb 2 11000000 s805_autoscript; then autoscr 11000000; fi;
if fatload usb 3 11000000 s805_autoscript; then autoscr 11000000; fi;"
setenv start_autoscript 'if usb start; then run start_usb_autoscript; fi; '
setenv bootcmd 'run start_autoscript; run storeboot'
setenv reboot_mode normal
saveenv
reset

 

Link to comment
Share on other sites

Connect the flash drive with Armbian (don't forget to add correct dtb file) and run the UART in the console these commands.

 

usb start

fatload usb 0 11000000 aml_autoscript

autoscr 11000000

 

The execution result of the show here.

Link to comment
Share on other sites

10 hours ago, balbes150 said:

Connect the flash drive with Armbian (don't forget to add correct dtb file) and run the UART in the console these commands.

 

usb start

fatload usb 0 11000000 aml_autoscript

autoscr 11000000

 

The execution result of the show here.

 

Here is the output  link  i havent tried with other dtb images but i guess meson8b_m201_1G.dtb  should be mine i have tried  dtb for m201 on Libreelec and it works  also i have copied the meson8b_m201_1G.dtb   from the dtb folder in the provided image.

 

 

1991 bytes read
## Executing script at 11000000
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 0 **

** Unable to use mmc 0:1 for fatload **
reading uInitrd

after 1hour  the box  outputted this :

 

reading uInitrd

3331991 bytes read
reading uImage


5694137 bytes read
reading dtb.img

23306 bytes read
## Booting kernel from Legacy Image at 14000000 ...
   Image Name:   Linux-3.10.99
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    5694073 Bytes = 5.4 MiB
   Load Address: 00208000
   Entry Point:  00208000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 15000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3331927 Bytes = 3.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 11800000
   Booting using the fdt blob at 0x11800000
board_usb_stop cfg: 0
   Uncompressing Kernel Image ... OK
uboot time: -1804819678 us.
EFUSE machid is not set.
Using machid 0xf81 from environment
From device tree /memory/ node aml_reserved_end property, for relocate ramdisk and fdt, relocate_addr: 0x5337001
   Loading Ramdisk to 05009000, end 05336757 ... OK
   Loading Device Tree to 05000000, end 05008b09 ... OK

Starting kernel ...

 

Link to comment
Share on other sites

The log shows that the file is loaded (but the download is too slow) and the engine is running.

Try to start the system manually. Using different dtb.

Try checking two options (with different data for the used RAM).

 

1.  options

 

usb start

setenv condev "console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0"

setenv bootargs "root=LABEL=ROOTFS rootflags=data=writeback rw ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}"

fatload usb 0 0x14000000 uImage

fatload usb 0 0x15000000 uInitrd

fatload usb 0 0x11800000 dtb.img

fdt addr 0x11800000

bootm 0x14000000 0x15000000 0x11800000

 

 

2. options

 

usb start

setenv condev "console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0"

setenv bootargs "root=LABEL=ROOTFS rootflags=data=writeback rw ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}"

fatload usb 0 0x21000000 uImage

fatload usb 0 0x22000000 uInitrd

fatload usb 0 0x21800000 dtb.img

fdt addr 21800000

bootm 0x21000000 0x22000000 0x21800000

 

 

Link to comment
Share on other sites

On 1/20/2018 at 8:34 AM, balbes150 said:

The log shows that the file is loaded (but the download is too slow) and the engine is running.

Try to start the system manually. Using different dtb.

Try checking two options (with different data for the used RAM).

 

1.  options

 

usb start

setenv condev "console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0"

setenv bootargs "root=LABEL=ROOTFS rootflags=data=writeback rw ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}"

fatload usb 0 0x14000000 uImage

fatload usb 0 0x15000000 uInitrd

fatload usb 0 0x11800000 dtb.img

fdt addr 0x11800000

bootm 0x14000000 0x15000000 0x11800000

 

 

2. options

 

usb start

setenv condev "console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0"

setenv bootargs "root=LABEL=ROOTFS rootflags=data=writeback rw ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}"

fatload usb 0 0x21000000 uImage

fatload usb 0 0x22000000 uInitrd

fatload usb 0 0x21800000 dtb.img

fdt addr 21800000

bootm 0x21000000 0x22000000 0x21800000

 

 

 

balbes150 thank you very much for your help . I have finally managed to install armbian on s805 . I have burned armbian on another flash drive and it has booted much faster unfortunately it stucked on Starting kernel ...  After that i have changed the dtb . Now it boots Ok

Link to comment
Share on other sites

On 1/12/2018 at 2:33 PM, balbes150 said:

Image update S805 20180112.

Updated kernel to version 3.10.99. Added screen mode 1080p. This mode is enabled by default. To switch to 720p you need to edit first line of script /boot/hdmi.sh. For smooth playback of test video I recommend to reduce the window size of the reproduced video to the size that would have enough system resources for smooth video playback.

Where can I get linux-headers for this 3.10.99 version?

My reason is, that I will probably need aml_i2c.ko driver, which is not unfortunately in modules...

So I hope I will be able build the driver alone.

Link to comment
Share on other sites

On 1/15/2018 at 1:31 PM, balbes150 said:

Have you tried to load the WiFi module ?

 

Hi,

 

i just tried ubuntu mate and debian stretch icewm on mk808b plus but no wifi availlable.

 

I added an usb dongle to get wifi.

 

iwconfig gives me :

wlan0     IEEE 802.11bgn  ESSID:"xxxxxx"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:24:xxxxx  
          Bit Rate:72.2 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=98/100  Signal level=-60 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

sit0      no wireless extensions.

lo        no wireless extensions.

ip6tnl0   no wireless extensions.

tunl0     no wireless extensions.
 

Regards, 

 

Trulio

Link to comment
Share on other sites

13 minutes ago, trulio said:

 

Hi,

 

i just tried ubuntu mate and debian stretch icewm on mk808b plus but no wifi availlable.

 

I added an usb dongle to get wifi.

 

iwconfig gives me :

wlan0     IEEE 802.11bgn  ESSID:"xxxxxx"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:24:xxxxx  
          Bit Rate:72.2 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=98/100  Signal level=-60 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

sit0      no wireless extensions.

lo        no wireless extensions.

ip6tnl0   no wireless extensions.

tunl0     no wireless extensions.
 

Regards, 

 

Trulio

Ok, just tried to launch: "sudo modprobe dhd"

 

now wifi works.

 

Thanks for your hard work

Link to comment
Share on other sites

Hi, i have one question.

 

Can you explain why armbian is not able to boot just using the right dtb.img like would do Libreelec or Lakka?

(i was only able to launch the distribution launching first an update with the aml zip file)

 

Thanks,

Trulio

Link to comment
Share on other sites

13 hours ago, trulio said:

Hi, i have one question.

 

Can you explain why armbian is not able to boot just using the right dtb.img like would do Libreelec or Lakka?

(i was only able to launch the distribution launching first an update with the aml zip file)

I don't understand your question. Write much detail, what steps you perform.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...