Armbian for Amlogic S9xxx kernel 5.x


Recommended Posts

6 minutes ago, balbes150 said:

I don't see any critical errors. Try waiting 5-7 minutes for the first launch. Or try using a different DTB.

 

 

but where can i change the dtb for emmc? i know the ini for MicroSD but dont know the folder /path for emmc and why should it be necessary to change it if the one for the microsd card works? does he use a different one when copying? 

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

@balbes150

thanks for your great work!

I have a question:
I run Armbian_20.02.0-rc1.037_Aml-s9xxx_bionic_current_5.5.0-rc6_20200205.img.xz on Tanix-tx5-max, using the dtb provided with the image.
My device has 4gb RAM, but the system shows only 3367852
Is it a known issue?
Any recommendations? 

Link to post
Share on other sites

I tried install to eMMC using the script: install-aml-s905-emmc.sh , resulting in boot loop, and not boot from SD card

My board: dtb_meson-gxl-s905w-p281.dtb

Img: Armbian_20.05.1_Arm-64_buster_current_5.6.2_20200408.img.xz

 

---

 

After many tries, a found a way to boot (form SD),  using uboot cmd line:

## Load from SD card
setenv bootargs "root=/dev/mmcblk0p2 rootwait rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes"
setenv loadaddr "0x11000000"; setenv dtb_loadaddr "0x1000000"; setenv initrd_loadaddr "0x13000000"
ext4load mmc 0:3 ${initrd_loadaddr} /uInitrd
ext4load mmc 0:3 ${loadaddr} /zImage
ext4load mmc 0:3 ${dtb_loadaddr} /meson-gxl-s905w-p281.dtb
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

I found a strange error, trying boot from emmc (uboot cmd line)

fatload mmc 1:1 ${loadaddr} /zImage

 

[01:39:08:790] gxl_p281_v1#fatload mmc 1:1 ${initrd_loadaddr} /uInitrd
[01:39:11:899] reading /uInitrd
[01:39:11:917] emmckey_is_access_range_legal, keys 73760, keye 74271, start 63048, blkcnt 19834
[01:39:11:917] Emmckey: Access range is illegal!
[01:39:11:917] Error reading cluster
[01:39:11:917] ** Unable to read file /uInitrd **   

what could i do to bypass this error?

This may related to this ???

https://github.com/endlessm/u-boot-meson/blob/master/drivers/mmc/mmc.c#L91

 

My boot loop log:

https://pastebin.com/S2wSZfNk

 

 

Link to post
Share on other sites

Using #mmc dev 1 (to see partitions), i got this error

[09:20:52:702] gxl_p281_v1#mmc dev 1
[09:21:01:863] emmc/sd response timeout, cmd8, status=0x1ff2800
[09:21:01:868] emmc/sd response timeout, cmd55, status=0x1ff2800
[09:21:01:924] init_part() 278: PART_TYPE_DOS
[09:21:01:924] [mmc_init] mmc init success
[09:21:01:962] dtb magic c7c99663
[09:21:01:962] Amlogic multi-dtb tool
[09:21:01:962] Cannot find legal dtb!
[09:21:01:962] start dts,buffer=0000000073ecdb50,dt_addr=0000000073ecdb50
[09:21:01:962] check_valid_dts: FDT_ERR_BADMAGIC
[09:21:01:962] get_partition_from_dts: -9
[09:21:01:962] get_ptbl_from_dtb()-259: get partition table from dts faild
[09:21:01:971] mmc_device_init()-1081: get partition table from dtb failed
[09:21:01:985] get_ptbl_rsv()-483: magic faild MPT, <0xb4>V<0x15>
[09:21:01:985] mmc_device_init()-1108: dtb&rsv are not exist, no LPT source
[09:21:01:985] switch to partitions #0, OK
[09:21:01:985] mmc1(part 0) is current device

this error equals that i found in boot log

https://pastebin.com/S2wSZfNk

[09:37:15:167] gxl_p281_v1#saveenv
[09:37:56:324] Saving Environment to aml-storage...
[09:37:56:334] _find_partition_by_name()-188: do not find match in table env

 

Would it be a partition layout problem ?!

Link to post
Share on other sites

I able to boot using some HACK !

 

Frist, duplicate the uInitrd (to name zInitrd), to move file to another disk offset.

 this fix previous error

[01:39:11:899] reading /uInitrd
[01:39:11:917] emmckey_is_access_range_legal, keys 73760, keye 74271, start 63048, blkcnt 19834
[01:39:11:917] Emmckey: Access range is illegal!

Question ? Need recompile uboot, to remove this ?

https://github.com/150balbes/Amlogic_S905-u-boot/blob/6087dffc05e02bc03d6de3026ccab5123ad46e52/drivers/mmc/mmc.c#L40

 

put 'aml_autoscript' in a blank SD card, only to BOOT form

setenv bootargs "root=/dev/mmcblk1p2 rootwait rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes"
setenv loadaddr "0x11000000"; setenv dtb_loadaddr "0x1000000"; setenv initrd_loadaddr "0x13000000"
fatload mmc 1:1 ${initrd_loadaddr} /zInitrd
fatload mmc 1:1 ${loadaddr} /zImage
fatload mmc 1:1 ${dtb_loadaddr} /dtb/amlogic/meson-gxl-s905w-p281.dtb
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

PS: use this, to compile script: 

mkimage -A arm -O linux -T script -C none -d aml_autoscript_emmc_load.cmd  aml_autoscript

 

i understanding very little about the AMLOGIC initialization process

what configuration can I use to don't need the SD card?

 

Link to post
Share on other sites
3 hours ago, Ricardo JL Rufino said:

i understanding very little about the AMLOGIC initialization process

what configuration can I use to don't need the SD card?

All you've done is take useless steps. Instead of these useless steps, it was just necessary to carefully study the forum. Where it is clearly written that the installation script you used is exclusively for s905 models, and a different installation script is used for s905w.

Link to post
Share on other sites

hello 

 

i just find your forum and i have an old tv box name akaso T95K pro this is an s912 cpu .

I boot on an sd card i have a desktop but no ethernet or wifi, i try several dtb file and nothing to solve this probleme.

 

Can you help me ?

thx a lot

Link to post
Share on other sites

Hello,

 

I have a question on which DTD file I should be using, I just got a

 

Sast Q9 with a Amlogic Processor (Unknown) As it is under shield and the details I got from is a 8X Cortex-A53 @ 2.02 with a Mali-450 MP 8 Core Processor Only 4 Cores are running under Android

 

The Android Model is called a Amlogic_7668 (p201_iptv) Manufacturer TV905 Has 8GB RAM and 64 GB Flash Paid 149 RMB for it. Running Android 8.1 Software Version V1001 Kernel 3.14.29 jackdong@ubuntu #84 Fri Nov 1 16:34 CST 2019 Build KOT49H.V1001 test-keys

 

Doesn't have a SD Slot nor reset button

 

https://detail.tmall.com/item.htm?id=563366895131&spm=a1z09.2.0.0.6f472e8dDvQPwl&_u=j2ib5ssf16c6&skuId=4189789141504

Running "cat /proc/device-tree/amlogic-dt-id"

 

I got "gxlx_p261_1g" 

 

I am successful getting ADB connecting thru WiFi but cannot seem to extract the DTD file using "dd if=/dev/dtb | gzip > /sdcard/download/dtb.img.gz
/dev/dtb: cannot open for read: Permission denied"

 

Currently unable to root. And recommendations on the next steps I should be taking.

 

Link to post
Share on other sites

 

Hello everyone, I'm new here.

I installed armbian 5.99 on my Mecool Kii pro S905D and it works properly.

I was able to configure Emby, OpenVPN, Nextcloud, Openhab with Conbee and everything works.

Now I have just installed TVheadend but I have a big problem.

I can't find the tuner built into the TV Adapter menu.

I expected to find a dvb folder in / etc but it isn't there. So I guess I'll have to download the drivers if available or use a USB receiver.

Any good man who can help me out?

 

Written with google translator SORRY!!!

Link to post
Share on other sites
Guest
This topic is now closed to further replies.