-
Hi @devmfc, First of all, thank you for this fantastic repository. I recently purchased an X96 mini with an S905W2, 1GB of RAM, and 8GB of storage for an IoT project. I've been trying to install Debian on it, but I consistently encounter a Kernel panic error message. Here are the configurations I've tried in the boot.config file: bootargs0=pd_ignore_unused clk_ignore_unused
box=s905w2_generic bootargs0=pd_ignore_unused clk_ignore_unused
box=box=s905w2_generic_slow bootargs0=pd_ignore_unused clk_ignore_unused
box=tanixw2 bootargs0=pd_ignore_unused clk_ignore_unused
box=tanixtx3miniplus And matter what I try it always crashes. Here's the output from the UART: S4:BL:25dcde;ID:0099951D8430191E;FEAT:30F:1FFF0000:B002F:19;POC:FF;RCY:0;OVD:0;DFU:0;eMMC:0;RD-0:0;CHK:0;SCS:0;OTP_LIC0
OTP_LIC10 : 008207004501fd010c07001000000300
OTP_LIC20 : ffffffbfffff0700c780580800000000
OTP_LIC30 : 0000000e190000008f03000e1b000000
TE: 104121
BL2 Built : 17:38:03, Nov 11 2021. s4 griscure-review-sc2-bl2-10272020-2-125-g2625bc6 - jenkins@walle02-sh
Board ID = 1
Set sys clock to 24Mhz
syspll is 1512Mhz. Locked
Set sys clock to 167Mhz
hifipll is 1800Mhz. Locked
bl2_platform_setup
boot area list:
1STBLOB 00000200 0002a000
BL2E 0002a200 00013000
BL2X 0003d200 00011000
DDRFIP 0004e200 00040000
DEVFIP 0008e200 00300000
s_setup from rom:00010081
dma mode
derive RSPK OK
DDR_DRIVER_VERSION: AML_A_PHY_V_1_23; Built : 17:38:03, Nov 11 2021. s4 griscure-review-sc2-bl2-10272020-2-125-g2625bch
Cfg max: 2, cur: 1. ddr id: 255. Force loop cfg
adc_average== 1
dram_type==DDR3
config==Rank0_32bit_ch0
DDR : DDR3 Rank0_32bit_ch0
DDR dramfreq=672 MHz
Set ddr clk to 672 MHz
package_info_value=106
write_dqs_delay[0]=80prepare training
CS0 size: 1024MB(auto)
Total size: 1024MB @ 672MHz
DDR : 1024MB @672MHz
cs0 DataBus test pass
cs0 AddrBus test pass
bdlr_step_size ps=450
INFO: bl2_load_bl2ex start!
INFO: load ...
Load: BL2E From: eMMC - 3.0 src: 00002000, dst: 00fffff0, size: 00011000
sdemmc src: ;
INFO: check ...
SHA CHK OK!
INFO: load ...
Load: BL2X From: eMMC - 3.0 src: 00000000, dst: 007ffff0, size: 00011000
sdemmc src: ;
INFO: check ...
SHA CHK OK!
run into bl2e
info: get valid params from BL2 !
bl2_gd_init
BL2E: do things as vendor specific ...
Hello world, now in BL2E
TE: 284037
BL2E Built : 14:01:11, Nov 11 2021. s4 g22f2c67 - jenkins@walle02-sh
Start to do bl2e platform setup!
boot area list:
1STBLOB 00000200 0002a000
BL2E 0002a200 00013000
BL2X 0003d200 00011000
DDRFIP 0004e200 00040000
DEVFIP 0008e200 00300000
eMMC boot @ 0
sd/emmc cmd 6 arg 0x03b90200 status 01ff2400
sw-hs2 f
aml log : BL2E load BL3X.....
TE: 288210
Load FIP HDR from eMMC, src: 0x00000000, des: 0x00300000, size: 0x00008000, part: 0
Load BL3X from eMMC, src: 0x00008000, des: 0x00308000, size: 0x0026c260, part: 0
bl30 payload size: 0x00010260
bl30 memcpy
info: process payload 0 bl3x_toc: 0x00300020 bl3x_data: 0x00308000 rc=146
bl40 payload size: 0x00018470
info: process payload 1 bl3x_toc: 0x00300048 bl3x_data: 0x00319000 rc=186
bl31 payload size: 0x000404703x_toc: 0x00300098 bl3x_data: 0x00373000 rc=259
bl33 memcpy
bl33 payload size: 0x00180260 offset: 0x000f4000
info: process payload 4 bl3x_toc: 0x003000c0 bl3x_data: 0x003f4000 rc=290
info: process payload 5 bl3x_toc: 0x003000e8 bl3x_data: 0x003001e0 rc=146
info: process payload 6 bl3x_toc: 0x00300110 bl3x_data: 0x00300fe0 rc=186
info: process payload 7 bl3x_toc: 0x00300138 bl3x_data: 0x00301de0 rc=217
info: process payload 8 bl3x_toc: 0x00300160 bl3x_data: 0x00302be0 rc=259
info: process payload 9 bl3x_toc: 0x00300188 bl3x_data: 0x003039e0 rc=290
info: process payload 10 bl3x_toc: 0x003001b0 bl3x_data: 0x003047e0 rc=335
aml log : BL2E loading BL3X is done...!
boot bl2x
params to bl2x, address=0x0100c130
Hello, we are in BL2X world !
TE: 794504
BL2X Built : 14:04:46, Nov 11 2021. s4 gsc2_netflix_nsv_review_09292021-2-g9ffe118 - jenkins@walle02-sh
bl2_platform_setup
INFO: get valid list_blobinfo, 0x0100c130
Info: get valid bl31 payload info, address= 0x00332000 size= 0x00040470
Info: bl31 image is now ready !
Info: get valid bl40 payload info, address= 0x00319000 size= 0x00018470
FEAT_DISABLE_SECURE_ENCLAVE: 1
bl2e_2 entry: 010000c0
run into bl31
NOTICE: BL31: v1.3(release):dc606ac74
NOTICE: BL31: Built : 14:14:13, Nov 11 2021
BL31:tsensor calibration: tsensor1 = 86008042
[mhu]: mhu_init-v1
[mhu]: 0xfe007080, 0x12120210
[mhu]: 0xfe007084, 0x12121002
[mhu]: 0xfe00708c, 0xa0a0802
[mhu]: 0xfe007010, 0x2
[mhu]: 0xfe007018, 0x10
[mhu]: 0xfe007014, 0x8
[mhu]: 0xfe007020, 0x89
[mhu]: 0xfe007024, 0x440
[mhu]: 0xfe007028, 0x6
[mhu]: mhu_init-v1 done
DEVICE_MVN=0x0
NOTICE: BL31: S4 normal boot!
NOTICE: BL31: BL33 decompress pass
E/TC:0 00 INFO: BL3-2: ATOS-V3.8.0-63f63ec45 (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2m
E/TC:0 00 INFO: BL3-2: secure time TEE
E/TC:0 00 INFO: BL3-2: Chip: S4 Rev: B (37:B - 0:1)
Hello world again, bl2e meet you guys!
valid entry info for bl33, pc = 0x00000000
======== smc start aocpu ========
Starting AOCPU FreeRTOS...
AOCPU image version='1GB_X98Q_BM864_S905W2_20220316 90d4bea0365022512ac51a9333859e766c12e0b1 12:05:14 2022-04-07'
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
[AOCPU]: mailbox init start
reg idx=0 cmd=6 handler=f701da76
reg idx=1 cmd=7 handler=f701da60
[AOCPU]: mailbox init end
Starting timer ...
reg idx=2 cmd=b4 handler=f701b5bc
reg idx=3 cmd=b5 handler=f701b558
reg idx=4 cmd=b6 handler=f701b0b2
reg idx=5 cmd=bb handler=f701b072
reg idx=6 cmd=bc handler=f701b092
reg idx=7 cmd=11 handler=f701def0
reg idx=8 cmd=12 handler=f701df2a
reg idx=9 cmd=4 handler=f701a436
reg idx=10 cmd=30 handler=f701a422
reg idx=11 cmd=31 handler=f701a432
Starting task scheduler ...
boot bl33 !
ddr size -------ddr_size:0x40000000.aml log : ERROR DDR detect size not match MMU !env_init: Environment STORAGE init )
U-Boot 2019.01 (Apr 07 2022 - 12:04:47 +0800)
DRAM: 1 GiB
Relocation Offset is: 3f64f000
Relocating to 3f64f000, new gd at 3963edc8, sp at 3963edb0
board init
watchdog disable
gpio: pin GPIOH_7 (gpio 43) value is 1
ERR: hdmitx: not find /amhdmitx node: FDT_ERR_NOTFOUND
get_sys_clk_rate_mtd:gclock=90000245
get_sys_clk_rate_mtd:P_NAND_CFG=e5
Currently only supports BCH8 1K!
NAND device id: 0 ff ff ff ff ff
[meson_mmc_probe]sd: Controller probe success!
[meson_mmc_probe]emmc: Controller probe success!
emmc: resp timeout, cmd8, status=0x1ff2800
emmc: resp timeout, cmd55, status=0x1ff2800
store flag: 0, types: 1
emmc init success!
boot_device:1
boot_seq:0
boot_bakups:3
rebuid_id :0
boot area list:
bl2 200 2a000
bl2e 2a200 13000
bl2x 3d200 11000
ddrfip 4e200 40000
devfip 8e200 300000
emmc: resp crc error, cmd6, status=0x1ff2400
emmc: tuning start:
emmc: best_win_start =3, best_win_size =4
GUID Partition Table Header signature is wrong: 0xED31668D204C4D40 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
fill_ept_by_gpt: invalid gpt ***
GUID Partition Table Header signature is wrong: 0x4BB157A3C82AF7C0 != 0x5452415020494645
Amlogic Multi-DTB tool
GZIP format, decompress...
Multi DTB detected.
Multi DTB tool version: v2.
Found 3 DTBS.
------------checkhw:432 ddr_size:0x3f800000
dtb 0 soc: s4 plat: s905w2 vari: ap201
dtb 1 soc: s4 plat: s905w2 vari: ap201-2g
dtb 2 soc: s4 plat: s905w2 vari: ap201-4g
Matched DTB for "s4_s905w2_ap201"
get_partition_from_dts() 232: ret 0
Amlogic Multi-DTB tool
Single DTB detected
parts: 25
00: frp 0000000000200000 1
01: factory 0000000000800000 11
02:vendor_boot_a 0000000001800000 1
enable vendor_boot
03:vendor_boot_b 0000000001800000 1
enable vendor_boot
04: tee 0000000002000000 1
05: logo 0000000000800000 1
06: misc 0000000000200000 1
07: dtbo_a 0000000000200000 1
08: dtbo_b 0000000000200000 1
09: cri_data 0000000000800000 2
10: param 0000000001000000 2
11: odm_ext_a 0000000001000000 1
12: odm_ext_b 0000000001000000 1
13: oem_a 0000000002000000 1
14: oem_b 0000000002000000 1
15: boot_a 0000000004000000 1
set has_boot_slot = 1
16: boot_b 0000000004000000 1
17: rsv 0000000001000000 1
18: metadata 0000000001000000 1
19: vbmeta_a 0000000000200000 1
20: vbmeta_b 0000000000200000 1
21:vbmeta_system_a 0000000000200000 1
22:vbmeta_system_b 0000000000200000 1
23: super 0000000070800000 1
enable dynamic_partition
24: userdata ffffffffffffffff 4
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
emmc probe success
Loading Environment from STORAGE... OK
In: serial@a000
Out: serial@a000
Err: serial@a000
board late init
upgrade_step 2
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
[imgread]partname = vendor_boot_a
Amlogic Multi-DTB tool
Multi DTB detected.
Multi DTB tool version: v2.
Found 3 DTBS.
------------checkhw:432 ddr_size:0x3f800000
dtb 0 soc: s4 plat: s905w2 vari: ap201
dtb 1 soc: s4 plat: s905w2 vari: ap201-2g
dtb 2 soc: s4 plat: s905w2 vari: ap201-4g
Matched DTB for "s4_s905w2_ap201"
vpu: find AML_VPU_CLK_LEVEL_DFT: 7
vpu: clk_level in dts: 7
vpu: vpu_power_on_new
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpu: vpu_probe
vpp: vpp_init, chip_id=55
vpp: set_osd1_rgb2yuv rgb2yuv on = 0..............
vpp: set_osd2_rgb2yuv rgb2yuv on = 0..............
vpp: set_osd3_rgb2yuv rgb2yuv on = 0..............
vpp: vpp osd2 matrix rgb2yuv..............
hdr_func: 0x8, hdr_process_select 0x1
hdr_func: 0x1, hdr_process_select 0x1
hdr_func: 0x2, hdr_process_select 0x1
cvbs: cpuid:0x37
retcnt=8
vdac_gsw_init: 0x4e
cvbs: find performance_pal config
cvbs: find performance_ntsc config
Start read misc partition datas!
rebootmode is cold_boot
forUpgrade_socType=37
forUpgrade_secureBoot=false
forUpgrade_robustOta=true
forUpgrade_flashType=BOOT_EMMC
forUpgrade_bootloaderCopies=3
forUpgrade_bootloaderIndex=0
forUpgrade_1stBootIndex=0
Saving Environment to STORAGE... OK
GUID Partition Table Header signature is wrong: 0xED31668D204C4D40 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
gpt is invalid
wrn:--read bootloader ok, check valib gpt---
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
no gpt partition table
rebootstatus is reboot_init, skip check
amlsecurecheck - try bootloader/dtb/recovery secure check
Usage:
amlsecurecheck
Start read misc partition datas!
save boot-info
buff: 99951d8430191e
Net: pwr up eth
in-phy
chip num 3
not set tx_amp_src
[KM]Msg:key_num: 20
[KM]Msg:normal key used!
the key partition size is:40000 byte
calc e3bf40a0f, store e3bf40a0f
calc e3bf40a0f, store e3bf40a0f
do nothing
[KM]Msg:rawhead hash check successful
[EFUSE_MSG]keynum is 4
eth0: ethernet@ff3f0000
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
recovery_status=
upgrade_step=2
reboot_mode:::: cold_boot
s_version: 01.01.220407.120447
[KM]Msg:key_num: 20
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L401:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L401:key[region_code] not programed yet
[KM]Error:f[key_manage_query_size]L401:key[deviceid] not programed yet
Interface: MMC
Device 1: Vendor: Man 000011 Snr d570c305 Rev: 0.0 Prod: 008GE0
Type: Removable Hard Disk
Capacity: 7448.0 MB = 7.2 GB (15253504 x 512)
Filesystem: FAT12 "KEYBOX PART"
do_hpd_detect, hpd_state=1
vout_hdmi_hpd: hdmimode=1080p60hz
vout_hdmi_hpd: colorattribute=422,12bit
set outputmode: hdmimode=1080p60hz
edid_monitorcapable861: ycbcr444=1, ycbcr422=1
HDMI_EDID_BLOCK_TYPE_VENDER: prxcap->ColorDeepSupport=0x8c
sink preferred_mode is 1080p60hz[16]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
edid_monitorcapable861: ycbcr444=1, ycbcr422=1
HDMI_EDID_BLOCK_TYPE_VENDER: prxcap->ColorDeepSupport=0x8c
read hdmichecksum: 0x6ab80000, hdmimode: 1080p60hz, colorattribute: 422,12bit
TV is same, initial mode is: 1080p60hz attr: 422,12bit, checksum: 0x6ab80000
WATERMARK: Watermark is disabled
[OSD]load fb addr from dts:/fb
[OSD]status disabled
[OSD]load fb addr from dts:/drm-vpu
[OSD]set initrd_high: 0x3f800000
[OSD]fb_addr for logo: 0x3f800000
[OSD]load fb addr from dts:/fb
[OSD]status disabled
[OSD]load fb addr from dts:/drm-vpu
[OSD]fb_addr for logo: 0x3f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3f800000 width=3840, height=2160
bootLogoPart=odm_ext_a
ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ext4LogoPath}
4147272 bytes read in 29 ms (136.4 MiB/s)
[imgread]load bmp from ext4 part okay
[OSD]osd_hw.free_dst_data: 0,1919,0,1079
[OSD]osd1_update_disp_freescale_enable
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
set hdmitx VIC = 16 CS = 1 CD = 6
aml_audio_init
hdmi_tx_set: save mode: 1080p60hz, attr: 422,12bit, hdmichecksum: 0x6ab80000
Saving Environment to STORAGE... OK
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
s_version: 01.01.220407.120447
[KM]Msg:key_num: 20
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L401:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L401:key[region_code] not programed yet
[KM]Error:f[key_manage_query_size]L401:key[deviceid] not programed yet
Interface: MMC
Device 1: Vendor: Man 000011 Snr d570c305 Rev: 0.0 Prod: 008GE0
Type: Removable Hard Disk
Capacity: 7448.0 MB = 7.2 GB (15253504 x 512)
Filesystem: FAT12 "KEYBOX PART"
gpio: pin GPIOD_3 (gpio 27) value is 1
Command: bcb uboot-command
Start read misc partition datas!
BCB hasn't any datas,exit!
PHY2=00000000fe03a020,phy-base=0xfe03e000
0x10 trim value=0x0000007f
noSof
sof timeout, reset usb phy tuning
Hit any key to stop autoboot: 0
MMC: no card present
starting USB...
USB0: 0x10 trim value=0x0000007f
0x10 trim value=0x0000007f
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
1273 bytes read in 15 ms (82 KiB/s)
### WARNING ### "autoscr" is deprecated, use "source" instead ###
_src_addr 1020000
## Executing script at 01020000
3831 bytes read in 16 ms (233.4 KiB/s)
### WARNING ### "autoscr" is deprecated, use "source" instead ###
_src_addr 0x3080000
## Executing script at 03080000
1316 bytes read in 16 ms (80.1 KiB/s)
Trying config box-config/kernel-6.x.y.config...
778 bytes read in 26 ms (28.3 KiB/s)
Trying config box-config/kernel-6.x.y-mainline-y.config...
362 bytes read in 20 ms (17.6 KiB/s)
Trying config box-config/kernel-6.6.y.config...
** Unable to read file box-config/kernel-6.6.y.config **
Trying config box-config/kernel-6.6.34-meson64.config...
** Unable to read file box-config/kernel-6.6.34-meson64.config **
Trying config box-config/box-s905w2_generic.config...
410 bytes read in 21 ms (18.6 KiB/s)
Trying config box-config/s4-default-mainline.config...
346 bytes read in 26 ms (12.7 KiB/s)
Trying config box-config/s4-debug-mainline-y.config...
528 bytes read in 31 ms (16.6 KiB/s)
Trying config boot.config...
1316 bytes read in 5 ms (256.8 KiB/s)
18044 bytes read in 46 ms (382.8 KiB/s)
Using devicetree [dtb-6.6.34-meson64/amlogic/meson-s4-s905w2-ap201.dtb]
22628360 bytes read in 1040 ms (20.8 MiB/s)
Starting linux with cmdline: root=/dev/sda2 rootfstype=ext4 rootwait rw console=tty0 no_console_suspend consoleblank=0d
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
load dtb from 0x4000000 ......
Amlogic Multi-DTB tool
Single DTB detected
## Flattened Device Tree blob at 04000000
Booting using the fdt blob at 0x4000000
active_slot is _a
Start read dtbo_a partition datas!
find 1 dtbos
No androidboot.dtbo_idx configured
And no dtbos will be applied
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
reserving fdt memory region: addr=4000000 size=136000
Loading Device Tree to 000000003fec6000, end 000000003ffff1b5 ... OK
Starting kernel ...
uboot time: 7106333 us
boot 64bit kernel
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd040]
[ 0.000000] Linux version 6.6.34-meson64 (root@xrossbuild) (aarch64-linux-gnu-gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 124
[ 0.000000] KASLR disabled on command line
[ 0.000000] Machine model: Amlogic Meson S4 S905W2 AP201 Reference Board
[ 0.000000] **********************************************************
[ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] ** **
[ 0.000000] ** This system shows unhashed kernel memory addresses **
[ 0.000000] ** via the console, logs, and other interfaces. This **
[ 0.000000] ** might reduce the security of your system. **
[ 0.000000] ** **
[ 0.000000] ** If you see this message and you are not debugging **
[ 0.000000] ** the kernel, report this immediately to your system **
[ 0.000000] ** administrator! **
[ 0.000000] ** **
[ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] **********************************************************
[ 0.000000] earlycon: meson0 at MMIO 0x00000000fe07a000 (options '')
[ 0.000000] printk: bootconsole [meson0] enabled
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000002f800000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x000000002f800000..0x000000003f7fffff (262144 KiB) map reusable linux,cma
[ 0.000000] OF: reserved mem: 0x0000000005000000..0x00000000083fffff (53248 KiB) nomap non-reusable secmon@5000000
[ 0.000000] OF: reserved mem: 0x000000007f800000..0x000000007fffffff (8192 KiB) nomap non-reusable linux,meson-fb
[ 0.000000] early_memtest: # of tests: 2
[ 0.000000] 0x0000000000000000 - 0x0000000002010000 pattern ffffffffffffffff
[ 0.000000] 0x0000000003643000 - 0x0000000003648000 pattern ffffffffffffffff
[ 0.000000] 0x0000000003650000 - 0x0000000004000000 pattern ffffffffffffffff
[ 0.000000] 0x0000000004136000 - 0x0000000005000000 pattern ffffffffffffffff
[ 0.000000] 0x0000000008400000 - 0x000000002f3f96b0 pattern ffffffffffffffff
[ 0.000000] 0x000000002f3f96df - 0x000000002f3f96e0 pattern ffffffffffffffff
[ 0.000000] 0x000000002f3f9711 - 0x000000002f3f9718 pattern ffffffffffffffff
[ 0.000000] 0x000000002f3f9744 - 0x000000002f3f9748 pattern ffffffffffffffff
[ 0.000000] 0x000000002f3f9774 - 0x000000002f3f9778 pattern ffffffffffffffff
[ 0.000000] 0x000000002f3f97a4 - 0x000000002f3f97a8 pattern ffffffffffffffff
[ 0.000000] 0x000000002f418ffc - 0x000000002f419000 pattern ffffffffffffffff
[ 0.000000] 0x0000000000000000 - 0x0000000002010000 pattern 0000000000000000
[ 0.000000] 0x0000000003643000 - 0x0000000003648000 pattern 0000000000000000
[ 0.000000] 0x0000000003650000 - 0x0000000004000000 pattern 0000000000000000
[ 0.000000] 0x0000000004136000 - 0x0000000005000000 pattern 0000000000000000
[ 0.000000] 0x0000000008400000 - 0x000000002f3f96b0 pattern 0000000000000000
[ 0.000000] 0x000000002f3f96df - 0x000000002f3f96e0 pattern 0000000000000000
[ 0.000000] 0x000000002f3f9711 - 0x000000002f3f9718 pattern 0000000000000000
[ 0.000000] 0x000000002f3f9744 - 0x000000002f3f9748 pattern 0000000000000000
[ 0.000000] 0x000000002f3f9774 - 0x000000002f3f9778 pattern 0000000000000000
[ 0.000000] 0x000000002f3f97a4 - 0x000000002f3f97a8 pattern 0000000000000000
[ 0.000000] 0x000000002f418ffc - 0x000000002f419000 pattern 0000000000000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003f7fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x2f3f6dc0-0x2f3f8fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000003f7fffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000004ffffff]
[ 0.000000] node 0: [mem 0x0000000005000000-0x00000000083fffff]
[ 0.000000] node 0: [mem 0x0000000008400000-0x000000003f7fffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003f7fffff]
[ 0.000000] On node 0, zone DMA: 2048 pages in unavailable ranges
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 42 pages/cpu s48296 r8192 d115544 u172032
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: root=/dev/sda2 rootfstype=ext4 rootwait rw console=tty0 no_console_suspend consoled
[ 0.000000] Booted with the nomodeset parameter. Only the system framebuffer will be available
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 256032
[ 0.000000] Policy zone: DMA
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:on, heap free:on
[ 0.000000] mem auto-init: clearing system memory may take some time...
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x000000002a137000-0x000000002e137000] (64MB)
[ 0.000000] Memory: 611580K/1040384K available (12736K kernel code, 1618K rwdata, 3856K rodata, 3712K init, 695K bs)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 44079520259s
[ 0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.001272] kfence: initialized - using 2097152 bytes for 255 objects at 0xffff00002f5fa000-0xffff00002f7fa000
[ 0.002823] Console: colour dummy device 80x25
[ 0.002850] printk: console [tty0] enabled
[ 0.006072] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.006678] pid_max: default: 32768 minimum: 301
[ 0.011011] LSM: initializing lsm=capability,apparmor,integrity
[ 0.012815] AppArmor: AppArmor initialized
[ 0.014086] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.014329] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.019196] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.020180] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.020493] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.021686] rcu: Hierarchical SRCU implementation.
[ 0.021916] rcu: Max phase no-delay instances is 1000.
[ 0.024101] smp: Bringing up secondary CPUs ...
[ 0.024771] Detected VIPT I-cache on CPU1
[ 0.024861] CPU1: Booted secondary processor 0x0000000001 [0x411fd040]
[ 0.025568] Detected VIPT I-cache on CPU2
[ 0.025627] CPU2: Booted secondary processor 0x0000000002 [0x411fd040]
[ 0.026277] Detected VIPT I-cache on CPU3
[ 0.026327] CPU3: Booted secondary processor 0x0000000003 [0x411fd040]
[ 0.026402] smp: Brought up 1 node, 4 CPUs
[ 0.030191] SMP: Total of 4 processors activated.
[ 0.030750] CPU features: detected: 32-bit EL0 Support
[ 0.031388] CPU features: detected: 32-bit EL1 Support
[ 0.032039] CPU features: detected: CRC32 instructions
[ 0.032725] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.033715] CPU: All CPU(s) started at EL2
[ 0.034237] alternatives: applying system-wide alternatives
[ 0.037923] devtmpfs: initialized
[ 0.043702] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.044279] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.112963] pinctrl core: initialized pinctrl subsystem
[ 0.115582] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.116889] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[ 0.117418] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.118327] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.119180] audit: initializing netlink subsys (disabled)
[ 0.120211] audit: type=2000 audit(0.116:1): state=initialized audit_enabled=0 res=1
[ 0.122328] thermal_sys: Registered thermal governor 'step_wise'
[ 0.122481] cpuidle: using governor ladder
[ 0.122969] cpuidle: using governor menu
[ 0.123745] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.124418] ASID allocator initialised with 65536 entries
[ 0.134831] Modules: 27056 pages in range for non-PLT usage
[ 0.134835] Modules: 518576 pages in range for PLT usage
[ 0.136857] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.137048] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.137799] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.138642] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.139423] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.140267] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.141056] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.141892] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.145297] cryptd: max_cpu_qlen set to 1000
[ 0.147596] fbcon: Taking over console
[ 0.148190] iommu: Default domain type: Translated
[ 0.148223] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.149463] SCSI subsystem initialized
[ 0.149784] usbcore: registered new interface driver usbfs
[ 0.150057] usbcore: registered new interface driver hub
[ 0.150712] usbcore: registered new device driver usb
[ 0.151605] pps_core: LinuxPPS API ver. 1 registered
[ 0.151923] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.153112] PTP clock support registered
[ 0.153640] EDAC MC: Ver: 3.0.0
[ 0.154568] scmi_core: SCMI protocol bus registered
[ 0.156386] NetLabel: Initializing
[ 0.156411] NetLabel: domain hash size = 128
[ 0.156660] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.157517] NetLabel: unlabeled traffic allowed by default
[ 0.158359] vgaarb: loaded
[ 0.158919] clocksource: Switched to clocksource arch_sys_counter
[ 0.161934] VFS: Disk quotas dquot_6.6.0
[ 0.162113] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.163262] FS-Cache: Loaded
[ 0.164098] AppArmor: AppArmor Filesystem Enabled
[ 0.173003] NET: Registered PF_INET protocol family
[ 0.173207] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.176649] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.177075] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.177994] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.179008] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.180022] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.180747] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.181474] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.182904] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.183763] RPC: Registered named UNIX socket transport module.
[ 0.183820] RPC: Registered udp transport module.
[ 0.184401] RPC: Registered tcp transport module.
[ 0.184986] RPC: Registered tcp-with-tls transport module.
[ 0.185669] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.186671] PCI: CLS 0 bytes, default 64
[ 0.187575] kvm [1]: IPA Size Limit: 40 bits
[ 0.188545] kvm [1]: vgic interrupt IRQ9
[ 0.188601] kvm [1]: Hyp mode initialized successfully
[ 0.191265] Initialise system trusted keyrings
[ 0.191616] workingset: timestamp_bits=43 max_order=18 bucket_order=0
[ 0.192098] zbud: loaded
[ 0.201151] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.203940] NFS: Registering the id_resolver key type
[ 0.203993] Key type id_resolver registered
[ 0.204401] Key type id_legacy registered
[ 0.205038] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.205756] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.247780] NET: Registered PF_ALG protocol family
[ 0.247884] Key type asymmetric registered
[ 0.248221] Asymmetric key parser 'x509' registered
[ 0.248827] Asymmetric key parser 'pkcs8' registered
[ 0.249588] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.250590] io scheduler mq-deadline registered
[ 0.250945] io scheduler kyber registered
[ 0.251652] io scheduler bfq registered
[ 0.252596] irq_meson_gpio: 82 to 12 gpio interrupt mux initialized
[ 0.262883] soc soc0: Amlogic Meson S4 (S905W2) Revision 37:b (6:1) Detected
[ 0.265226] fe07a000.serial: ttyS0 at MMIO 0xfe07a000 (irq = 14, base_baud = 1500000) is a meson_uart
[ 0.266409] printk: console [ttyS0] enabled
[ 0.266409] printk: console [ttyS0] enabled
[ 0.266763] printk: bootconsole [meson0] disabled
[ 0.266763] printk: bootconsole [meson0] disabled
[ 0.272017] random: crng init done
[ 0.280983] brd: module loaded
[ 0.285629] meson8b-dwmac fdc00000.ethernet: IRQ eth_wake_irq not found
[ 0.285785] meson8b-dwmac fdc00000.ethernet: IRQ eth_lpi not found
[ 0.286627] meson8b-dwmac fdc00000.ethernet: PTP uses main clock
[ 0.287334] meson8b-dwmac fdc00000.ethernet: DEVMFC: initial eth reg0 value: 0x0004BE04
[ 0.288299] meson8b-dwmac fdc00000.ethernet: DEVMFC: initial eth reg1 value: 0x00000260
[ 0.289683] meson8b-dwmac fdc00000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[ 0.290203] meson8b-dwmac fdc00000.ethernet: DWMAC1000
[ 0.290842] meson8b-dwmac fdc00000.ethernet: DMA HW capability register supported
[ 0.291798] meson8b-dwmac fdc00000.ethernet: RX Checksum Offload Engine supported
[ 0.292707] meson8b-dwmac fdc00000.ethernet: COE Type 2
[ 0.293354] meson8b-dwmac fdc00000.ethernet: TX Checksum insertion supported
[ 0.294232] meson8b-dwmac fdc00000.ethernet: Wake-Up On Lan supported
[ 0.295060] meson8b-dwmac fdc00000.ethernet: Normal descriptors
[ 0.295771] meson8b-dwmac fdc00000.ethernet: Ring mode enabled
[ 0.296496] meson8b-dwmac fdc00000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 0.297498] meson8b-dwmac fdc00000.ethernet: device MAC address 90:0e:b3:60:49:f9
[ 0.299773] meson8b-dwmac fdc00000.ethernet: DEVMFC: after stmmac_dvr_probe eth reg0 value: 0x00001E04
[ 0.300270] meson8b-dwmac fdc00000.ethernet: DEVMFC: after stmmac_dvr_probe eth reg1 value: 0x00000260
[ 0.301437] meson8b-dwmac fdc00000.ethernet: DEVMFC: resulting eth reg0 value: 0x00001E04
[ 0.302465] meson8b-dwmac fdc00000.ethernet: DEVMFC: resulting eth reg1 value: 0x00000260
[ 0.304333] VFIO - User Level meta-driver version: 0.3
[ 0.305522] usbcore: registered new interface driver uas
[ 0.305600] usbcore: registered new interface driver usb-storage
[ 0.306290] usbcore: registered new device driver onboard-usb-hub
[ 0.307578] i2c_dev: i2c /dev entries driver
[ 0.309827] sdhci: Secure Digital Host Controller Interface driver
[ 0.309911] sdhci: Copyright(c) Pierre Ossman
[ 0.310469] Synopsys Designware Multimedia Card Interface Driver
[ 0.311520] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.312506] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.313646] meson-sm: secure-monitor enabled
[ 0.314129] hid: raw HID events driver (C) Jiri Kosina
[ 0.314409] usbcore: registered new interface driver usbhid
[ 0.314822] usbhid: USB HID core driver
[ 0.317115] NET: Registered PF_PACKET protocol family
[ 0.317459] Key type dns_resolver registered
[ 0.326551] registered taskstats version 1
[ 0.327087] Loading compiled-in X.509 certificates
[ 0.327524] zswap: loaded using pool lzo/zbud
[ 0.348400] Key type .fscrypt registered
[ 0.348441] Key type fscrypt-provisioning registered
[ 0.349018] Key type encrypted registered
[ 0.349349] AppArmor: AppArmor sha1 policy hashing enabled
[ 0.367734] simple-framebuffer 7f800000.framebuffer-hdmi: framebuffer at 0x7f800000, 0x800000 bytes
[ 0.368195] simple-framebuffer 7f800000.framebuffer-hdmi: format=r5g6b5, mode=1920x1080x16, linelength=3840
[ 0.369817] Console: switching to colour frame buffer device 240x67
[ 0.369858] SError Interrupt on CPU0, code 0x00000000bf000000 -- SError
[ 0.369867] CPU: 0 PID: 13 Comm: kworker/u8:1 Not tainted 6.6.34-meson64 #5
[ 0.369874] Hardware name: Amlogic Meson S4 S905W2 AP201 Reference Board (DT)
[ 0.369880] Workqueue: events_unbound deferred_probe_work_func
[ 0.369896] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 0.369904] pc : cfb_imageblit+0x5e4/0x6c0
[ 0.369915] lr : cfb_imageblit+0x3e4/0x6c0
[ 0.369923] sp : ffff8000816cb610
[ 0.369926] x29: ffff8000816cb610 x28: 0000000000000000 x27: 0000000000000000
[ 0.369936] x26: 0000000000000001 x25: 0000000000000003 x24: 000000000000000b
[ 0.369945] x23: ffff80008296bc08 x22: 0000000000000002 x21: 0000000000000003
[ 0.369954] x20: ffff80008296cb00 x19: ffff00000017e005 x18: ffff00000017e005
[ 0.369964] x17: 0000000000000010 x16: 0000000000000001 x15: 0000000020000000
[ 0.369973] x14: 0000000000000002 x13: 0000000000000000 x12: 0000000000000000
[ 0.369982] x11: 0000000000000010 x10: 0000000000000004 x9 : 0000000000000004
[ 0.369991] x8 : 0000000400000000 x7 : 0000000000000f00 x6 : 0000000000000001
[ 0.370000] x5 : ffff00000017e006 x4 : 0000000000000000 x3 : ffff8000816cb698
[ 0.370010] x2 : ffff80008296bc10 x1 : 0000000000000000 x0 : 00000000ffffffff
[ 0.370021] Kernel panic - not syncing: Asynchronous SError Interrupt
[ 0.370025] CPU: 0 PID: 13 Comm: kworker/u8:1 Not tainted 6.6.34-meson64 #5
[ 0.370031] Hardware name: Amlogic Meson S4 S905W2 AP201 Reference Board (DT)
[ 0.370034] Workqueue: events_unbound deferred_probe_work_func
[ 0.370043] Call trace:
[ 0.370046] dump_backtrace+0x98/0x118
[ 0.370058] show_stack+0x18/0x24
[ 0.370066] dump_stack_lvl+0x48/0x60
[ 0.370076] dump_stack+0x18/0x24
[ 0.370083] panic+0x314/0x368
[ 0.370090] nmi_panic+0x8c/0x90
[ 0.370096] arm64_serror_panic+0x6c/0x78
[ 0.370102] do_serror+0x3c/0x78
[ 0.370107] el1h_64_error_handler+0x30/0x48
[ 0.370117] el1h_64_error+0x68/0x6c
[ 0.370123] cfb_imageblit+0x5e4/0x6c0
[ 0.370132] soft_cursor+0x15c/0x1e0
[ 0.370140] bit_cursor+0x2dc/0x534
[ 0.370148] fbcon_cursor+0xec/0x118
[ 0.370156] hide_cursor+0x3c/0xb8
[ 0.370166] redraw_screen+0x128/0x244
[ 0.370174] do_bind_con_driver.isra.0+0x324/0x390
[ 0.370182] do_take_over_console+0x1a0/0x1f0
[ 0.370190] do_fbcon_takeover+0x70/0xe8
[ 0.370198] do_fb_registered+0x130/0x144
[ 0.370207] fbcon_fb_registered+0x40/0xf8
[ 0.370215] register_framebuffer+0x140/0x234
[ 0.370222] simplefb_probe+0x67c/0x904
[ 0.370227] platform_probe+0x68/0xc0
[ 0.370237] really_probe+0x184/0x3c8
[ 0.370244] __driver_probe_device+0xd0/0x16c
[ 0.370251] driver_probe_device+0x3c/0x110
[ 0.370259] __device_attach_driver+0xbc/0x158
[ 0.370266] bus_for_each_drv+0x84/0xe0
[ 0.370273] __device_attach+0x9c/0x1ac
[ 0.370280] device_initial_probe+0x14/0x20
[ 0.370287] bus_probe_device+0xac/0xb0
[ 0.370294] deferred_probe_work_func+0x9c/0xec
[ 0.370301] process_one_work+0x138/0x248
[ 0.370311] worker_thread+0x320/0x438
[ 0.370320] kthread+0x114/0x118
[ 0.370328] ret_from_fork+0x10/0x20
[ 0.370336] SMP: stopping secondary CPUs
[ 0.370344] Kernel Offset: disabled
[ 0.370346] CPU features: 0x0,00000000,00020000,0000421b
[ 0.370352] Memory Limit: none
[ 0.427469] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]--- Hope you can help with this or maybe guide me on how I could solve this. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
After investigating the issue it appears that the problem is related to the framebuffer. Although I'm not entirely sure why this is happening, the workaround I found was to remove the |
Beta Was this translation helpful? Give feedback.
-
Sorry to bother you again but I need your help once more. I'm now trying to install Debian on the eMMC but it seems the installation script is crashing, and I'm not sure what's causing the crash. Any ideas or leads? tvbox:~#./aml-multiboot-setup.sh
Setup multiboot. This will reconfigure your bootloader environment to use a 'boot order' to load boot scripts while booting. The default boot order will be set to:
1. sd,
2. usb,
3. emmc,
4. original boot.
This will change your bootloader environment. By doing so there is always a small risk to 'brick' your box. If you don't have the tools, image and knowledge to fix that, you should reconsider. Personally I have never 'bricked' a box with this script. However ymmv, don't blame me.
Are you sure to proceed? y/Ny
Ok, proceeding
Trying to config u-boot environment storage location... No eMMC storage detected! u-boot environment storage not available. Try another DTB.
[Error]
Could not find a valid u-boot environment storage location.
This means that modification of bootloader environment is not possible.
In more than 80% of the cases this is caused by the presence of non-stock u-boot bootloader. Did you flash some other firmware to eMMC?
Please install stock Android firmware and try again.
tvbox:~#./aml-install-to-emmc.sh
#
# WARNING: This script CAN (soft) brick your TVBOX and is UNSUPPORTED!
#
# This script has not been tested extensively, is not high quality and makes a
# lot of assumptions about your bootloader. If your bootloader version fails
# to meet any of these assumptions... It will no longer boot from eMMC.
# However, in most cases, the box will still be able to boot from a USB flash
# drive or USB otg via the Amlogic USB burning tool. You can often use this
# method to fix boot problems.
#
# If you don't have the knowledge or tools to unbrick an Amlogic system and
# you are very attached to your box, maybe this script isn't for you.
#
# That being said, it works on my full range of boxes, S905, S905X, S905W,
# S912, S905X2, S922X, S905X3, S905X4 ans S905W2. I have never bricked one
# of my boxes with this script.
# But of course, every TVBOX can be different, so your mileage may vary.
#
# Anyway, if you use this script, don't blame me or ask me to fix it
# when it goes wrong, you have been warned, you're on your own (and Google).
#
grep: /sys/bus/mmc/devices/*/type: No such file or directory
No eMMC device found!
Error occured [1], line 198, exitting
tvbox:~#dmesg | grep -i mmc
[ 0.275813] meson-gx-mmc fe088000.mmc: Looking up vmmc-supply from device tree
[ 0.275913] meson-gx-mmc fe08a000.mmc: Looking up vmmc-supply from device tree
[ 0.275955] meson-gx-mmc fe088000.mmc: Looking up vqmmc-supply from device tree
[ 0.276021] meson-gx-mmc fe08a000.mmc: Looking up vqmmc-supply from device tree
[ 0.276104] meson-gx-mmc fe088000.mmc: allocated mmc-pwrseq
[ 0.276115] meson-gx-mmc fe08a000.mmc: Got CD GPIO
[ 0.276133] reg-fixed-voltage regulator-emmc_1v8: Looking up vin-supply from device tree
[ 0.276149] EMMC_1V8: supplied by VDDAO_3V3
[ 0.276195] EMMC_1V8: 1800 mV, enabled
[ 0.276303] EMMC_1V8: Failed to create debugfs directory
[ 0.276318] reg-fixed-voltage regulator-emmc_1v8: EMMC_1V8 supplying 1800000uV
[ 0.277162] meson-gx-mmc fe08c000.mmc: Looking up vmmc-supply from device tree
[ 0.277311] meson-gx-mmc fe08c000.mmc: Looking up vqmmc-supply from device tree
[ 0.277331] EMMC_1V8: Failed to create debugfs directory
[ 0.323397] mmc2: tuning execution failed: -5
[ 0.323425] mmc2: error -5 whilst initialising SDIO card
[ 0.324888] mmc2: Failed to initialize a non-removable card
[ 0.420681] mmc1: error -110 whilst initialising MMC card
[ 0.421990] mmc1: Failed to initialize a non-removable card
tvbox:~#ls /proc/device-tree/soc/mmc*
/proc/device-tree/soc/mmc@fe088000:
bus-width compatible max-frequency pinctrl-0 resets vmmc-supply
cap-sd-highspeed disable-wp mmc-pwrseq pinctrl-1 sd-uhs-sdr104 vqmmc-supply
clock-names interrupts name pinctrl-names sd-uhs-sdr50
clocks keep-power-in-suspend non-removable reg status
/proc/device-tree/soc/mmc@fe08a000:
bus-width cd-gpios clocks disable-wp max-frequency pinctrl-0 pinctrl-names resets vmmc-supply
cap-sd-highspeed clock-names compatible interrupts name pinctrl-1 reg status vqmmc-supply
/proc/device-tree/soc/mmc@fe08c000:
bus-width clocks interrupts non-removable pinctrl-names status
cap-mmc-highspeed compatible max-frequency pinctrl-0 reg vmmc-supply
clock-names disable-wp name pinctrl-1 resets vqmmc-supply
tvbox:~#for node in /proc/device-tree/soc/mmc*; do echo "Node: $node"; cat $node/name; echo "Reg: $(hexdump -v -e '/4 "%08x " "\n"' $node/reg)"; echo "Clocks: $(hexdump -v -e '/4 "%08x " "\n"' $node/clocks)"; echo "Interrupts: $(hexdump -v -e '/4 "%08x " "\n"' $node/interrupts)"; echo ""; done
Node: /proc/device-tree/soc/mmc@fe088000
mmcReg: 00000000
008008fe
00000000
00080000
Clocks: 04000000
b0000000
04000000
7e000000
04000000
03000000
Interrupts: 00000000
b0000000
04000000
Node: /proc/device-tree/soc/mmc@fe08a000
mmcReg: 00000000
00a008fe
00000000
00080000
Clocks: 04000000
b1000000
04000000
81000000
04000000
03000000
Interrupts: 00000000
b1000000
01000000
Node: /proc/device-tree/soc/mmc@fe08c000
mmcReg: 00000000
00c008fe
00000000
00080000
Clocks: 04000000
b2000000
04000000
7b000000
04000000
11000000
Interrupts: 00000000
b2000000
04000000 |
Beta Was this translation helpful? Give feedback.
-
Sorry I have another question, do you know by any chance how to control the power LED, such as turning it off, on, or making it blink? |
Beta Was this translation helpful? Give feedback.
-
You first have to know the GPIO which is used for the LED. Then you'll have to add a LED definition with that GPIO to your DTB. After that you can control the leds via /sys/class/leds/some:led_name/brightness or trigger |
Beta Was this translation helpful? Give feedback.
Yes, your bootloader uses a different frame buffer address then in the DTB you use. One of the other S905W2 dtb's use the same address as your box (0x3f800000). But I don't remember which one and I'm not around a computer right now.