Jump to content

Recommended Posts

Posted

I need to see the output of the "printenv" command from u-boot.  Need to leave to run u-boot and execute the command "printenv" and "help". The result is shown here.

Posted

@TonyMac32 thanks, I did the scroll: CTRL-a then [    within 'screen'  now I found that:

Hit Enter or space or Ctrl+C key to stop autoboot -- :  0

 

I will try again but it is so blazingly fast

Posted

I got it !!!

It is like this: ctrl + alt + del  on the keyboard attached to the Potato = reboot.  On the Desktop PC I have the Serial-Connector with 'screen' running and within 'screen' you have to hit  SPACE  :D

'help' output:

  Reveal hidden contents

 

printenv:

  Reveal hidden contents

 

Posted

Judging from the conclusion of the command "printenv" on your Board uses a standard u-boot, which can use a universal multiload. You can try to activate multi-boot with Android (as it is on all TV boxes) ? And then show the output of the "printenv" command again.

Posted

I went to: https://yadi.sk/d/pHxaRAs-tZiei  downloaded: Armbian_5.37_S9xxx_Ubuntu_xenial_3.14.79_mate_20180209.img.xz

Did the Update&Backup in Android - but reboot did not work.
 

There are two directories on BOOT:

  • dtb
  • dtb-3.14.79-amlogics905x

Which is the right one?

 

With UART connected, I watch the boot process - it stops at:

  Reveal hidden contents

 

Posted
  On 2/24/2018 at 3:40 PM, Tido said:

reading dtb.img

** Unable to read file dtb.img **

Expand  

I see the multiload has been activated. You can use both types of media - SD, and USB. Add dtb (named " dt.img") to the root of the FAT partition of the SD card. You can use files from any directory - they duplicate each other. I recommend to use images from that directory. This is the latest version.

 

https://yadi.sk/d/IUSraO7-3SGPXs

 

The version number of the kernel 3.14.79 does not mean that it is better 3.14.29. For S905X it is better to use Armbian 5.41 version

Posted
  On 2/24/2018 at 4:23 PM, balbes150 said:

Add dtb (named " dt.img") to the root of the FAT partition of the SD card.

Expand  

 

I think I have done that, can you see the line in white - but it doesn't find it. I have tried several s905x dtb types.

 

dtb_le_potatp.png.f51f06ff38ab3f2d5d0def9b370eb970.png

Posted

Alright, I guess I have to rename the DTB inside the directory it already is:

dtb

dtb-3.14.79-amlogics905x

 

it finds it now, but still doesn't boot:

Bus Width: 4-bit
reading s905_autoscript
1641 bytes read in 19 ms (84 KiB/s)
## Executing script at 01020000
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 2 **
** Bad device usb 3 **
reading uInitrd
5914452 bytes read in 409 ms (13.8 MiB/s)
reading zImage
13440256 bytes read in 798 ms (16.1 MiB/s)
reading dtb.img
33053 bytes read in 11 ms (2.9 MiB/s)
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

Usage:
rsvmem check                   - check reserved memory
rsvmem dump                    - dump reserved memory

rsvmem check failed
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    5914388 Bytes = 5.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
load dtb from 0x1000000 ......
      Amlogic multi-dtb tool
      Single dtb detected
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
Host not halted after 16000 microseconds.
   Loading Ramdisk to 73903000, end 73ea6f14 ... OK
   Loading Device Tree to 000000001fff4000, end 000000001ffff11c ... OK
fdt_instaboot: no instaboot image

Starting kernel ...

uboot time: 8060499 us
domain-128 init dvfs: 4

 

Posted

Forget about the version of the image 3.14.79 - it for version S905 (not S905X).

Use those images to which I gave a link. The first run will run WITHOUT dtb file. If the system stops at

 

"Starting kernel ...

uboot time: 8060499 us
domain-128 init dvfs: 4"

 

Add the dtb file. Start with kvim_multios.dtb

If it does not work, try other p212 files

Posted (edited)

Hi Balbes,

 

I was too lazy to wait to burn 4,3GB yesterday and just tried all the DTB files. However, this morning I have burned: Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_mate_20180216.img

I have chosen this DTB: gxl_p212_1g.dtb (it was the first with p212)

 

In opposite to your instructions I have renamed the file in the folder dtb/ - in your instructions it says: copy them to root directory  |  which is wrong I think.

 

Last but not least, it runs :-)  Thank you for your help.

 

Changing to 1280x720 doesn't work it stays at 1920x1080.

Shall I do some checks  kvim_multios.dtb  versus  gxl_p212_1g.dtb ?

 

Edit:  Wow there is also: gxl_p212_2g_lepotato.dtb

Edited by Tido
le Potat
Posted

If you did not copy the "dtb.img", this is equivalent to the absence of dtb. And script launch s905_autoscript used (automatically) the dtb, that there is in eMMC. :)

If you want to use other dtb (from /dtb) you must copy the file "dtb.img " in the root of the first partition (FAT).

 

Switching to 720p works. You must follow the instructions accurately. :)

There are only two screen resolutions of 1080 and 720.

Posted (edited)

I rename "kvim2_multios.dtb" to dtb.img, copy to root folder of FAT partition but it doesn't boot:

uboot time: 8131401 us
domain-0 init dvfs: 4
domain-1 init dvfs: 4

 

It doesn't boot with  gxl_p212_1g_lepotato.dtb

 


Jeee, reading your comment over at: VIM1 S905X MultiOS_3in1 (Android+Libreelec+Linux) install to eMMC

Is see there is a  kvim and kvim2 

 

Now it runs :rolleyes:

Edited by Tido
kvim
Posted

Some more details on the storage:

root@amlogic:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            757M     0  757M   0% /dev
tmpfs           174M  9.9M  164M   6% /run
/dev/mmcblk1p2   29G  3.1G   26G  11% /
tmpfs           868M     0  868M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           868M     0  868M   0% /sys/fs/cgroup
tmpfs           868M  4.0K  868M   1% /tmp
/dev/mmcblk1p1  128M   54M   74M  43% /boot
log2ram          50M  3.7M   47M   8% /var/log
tmpfs           174M     0  174M   0% /run/user/107
tmpfs           174M     0  174M   0% /run/user/0

 

fdisk -l

  Reveal hidden contents

 

Posted
  On 2/25/2018 at 8:27 PM, Tido said:

Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 0 8191 8192 4M 83 Linux /dev/mmcblk0p2 73728 204799 131072 64M 83 Linux /dev/mmcblk0p3 221184 1269759 1048576 512M 83 Linux /dev/mmcblk0p4 1269760 25800703 24530944 11.7G 5 Extended /dev/mmcblk0p5 1286144 1302527 16384 8M 83 Linux /dev/mmcblk0p6 1318912 1384447 65536 32M 83 Linux /dev/mmcblk0p7 1400832 1466367 65536 32M 83 Linux /dev/mmcblk0p8 1482752 1499135 16384 8M 83 Linux /dev/mmcblk0p9 1515520 1531903 16384 8M 83 Linux /dev/mmcblk0p10 1548288 1613823 65536 32M 83 Linux /dev/mmcblk0p11 1630208 1695743 65536 32M 83 Linux /dev/mmcblk0p12 1712128 1777663 65536 32M 83 Linux /dev/mmcblk0p13 1794048 5988351 4194304 2G 83 Linux /dev/mmcblk0p14 6004736 30535679 24530944 11.7G 83 Linux

Expand  

That's almost what I need, but not enough partition names.

Copy the entire system startup log from UART (from the start of u-boot), I will find myself in it the information I need.

Posted

I wrote that there is not enough information about the sections.  Now I see everything I need. And judging from this information, you can try using the installation script in emc (/root/install.sh). Please note that this script should be used only when starting the system from external media WITHOUT adding "kvim_multios.dtb " file. Pay attention, file " kvim_multios.dtb " has a different partition structure and will not work with your u-boot. If you try to use the installation script together with the wrong dtb.img, you will get a brick (you will need to re-write all firmware to eMMC).

 

Log Android line 225-237

 

Log Armbian line 626-638

Posted

echo "*******************************************"
echo " copy OS to eMMC parted DATA"
echo "*******************************************"

 

I have SDcard 32Gb  and eMMC 16GB. Do I have to shrink the partition on SDcard ?

 

  1. SDcard, rename dtb.img to dtb.img.old
  2. insert SDcard in Potato
  3. boot the Potato - it will use the dtb from Android eMMC, but boot into armbian
  4. I start installation script from  eMMC  or  SDcard ?

 

  Reveal hidden contents

 

Posted

Before running the installation script, BE sure to check the command "sudo fw_printenv" (from The armbian system running from the SD card). Only if you get the output of variables from u-boot, you can proceed to the installation.

 

The script performs a "smart" copy (copied the required files and directories). Therefore, it does not matter what size of the external media. It is important that the size of the data on an external drive was smaller than the size of eMMC (/dev/data). The size of the data can be roughly estimated by the "df -h" command. If the user data is smaller than the /dev/data partition on the eMMC, you can perform the installation (run the script /root/install.sh). Yes, you understood correctly. Rename " db.img" the system was not used. Start the Arabian system from external media. Open terminal and execute from the SD card on behalf of the root user, the script "/root/install.sh" .

Posted (edited)

It says about  androidboot.selinux, sounds good :-)

root@amlogic:~# fw_printenv
EnableSelinux=enforcing
active_slot=_a
aml_dt=gxl_p212_2g
baudrate=115200
bcb_cmd=get_valid_slot;
bootargs=rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=enforcing logo=osd1,loaded,0x3d800000,720p60hz maxcpus=4 vout=720p60hz,enable hdmimode=720p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 androidboot.firstboot=0 jtag=apao androidboot.hardware=amlogic androidboot.slot_suffix=_a aml_dt=gxl_p212_2g recovery_part={recovery_part} recovery_offset={recovery_offset}
bootcmd=run start_autoscript; run storeboot;
bootdelay=1
bootfromnand=0
bootup_offset=0x10d81e0
bootup_size=0x3f4c8

 

root@amlogic:~# ll
total 44
drwx------  6 root root 4096 Feb 25 17:17 ./
drwxr-xr-x 22 root root 4096 Feb 16 14:10 ../
-rw-------  1 root root  149 Feb 25 21:05 .bash_history
-rw-r--r--  1 root root 3106 Oct 22  2015 .bashrc
drwx------  2 root root 4096 Feb 16 14:11 .cache/
drwx------  5 root root 4096 Feb 25 08:08 .config/
drwx------  3 root root 4096 Feb 16 14:13 .local/
drwxr-xr-x  2 root root 4096 Feb 25 17:17 .nano/
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
-rwxr-xr-x  1 root root  216 Feb 16 14:13 fstab*
-rwxr-xr-x  1 root root 3216 Feb 16 14:13 install.sh*
root@amlogic:~# 
root@amlogic:~# ./install.sh 

 

to copy /usr takes some time..

  Reveal hidden contents

 

and now ?

 

root@amlogic:~# df -Tha --total
Filesystem     Type             Size  Used Avail Use% Mounted on
sysfs          sysfs               0     0     0    - /sys
proc           proc                0     0     0    - /proc
udev           devtmpfs         757M     0  757M   0% /dev
devpts         devpts              0     0     0    - /dev/pts
tmpfs          tmpfs            174M  9.9M  164M   6% /run
/dev/mmcblk1p2 ext4              29G  2.9G   26G  10% /
securityfs     securityfs          0     0     0    - /sys/kernel/security
tmpfs          tmpfs            868M     0  868M   0% /dev/shm
tmpfs          tmpfs            5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs            868M     0  868M   0% /sys/fs/cgroup
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/systemd
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/cpuset
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/blkio
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/memory
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/cpu,cpuacct
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/devices
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/perf_event
cgroup         cgroup              0     0     0    - /sys/fs/cgroup/freezer
systemd-1      autofs              0     0     0    - /proc/sys/fs/binfmt_misc
debugfs        debugfs             0     0     0    - /sys/kernel/debug
hugetlbfs      hugetlbfs           0     0     0    - /dev/hugepages
mqueue         mqueue              0     0     0    - /dev/mqueue
configfs       configfs            0     0     0    - /sys/kernel/config
fusectl        fusectl             0     0     0    - /sys/fs/fuse/connections
tmpfs          tmpfs            868M  4.0K  868M   1% /tmp
/dev/mmcblk1p1 vfat             128M   54M   74M  43% /boot
/dev/mmcblk1p2 ext4              29G  2.9G   26G  10% /var/log.hdd
log2ram        tmpfs             50M  4.4M   46M   9% /var/log
tmpfs          tmpfs            174M     0  174M   0% /run/user/107
gvfsd-fuse     fuse.gvfsd-fuse  0.0K  0.0K  0.0K    - /run/user/107/gvfs
tmpfs          tmpfs            174M     0  174M   0% /run/user/0
total          -                 62G  5.7G   56G  10% -

 

Edited by Tido
added df -Tha --total
Posted

shutdown, removed the SDcard.  Boot with eMMC:

Welcome to ARMBIAN 5.41 user-built Ubuntu 16.04.4 LTS 3.14.29   
System load:   1.40 0.40 0.14   Up time:       1 min
Memory usage:  11 % of 1735MB   IP:            192.168.11.11
CPU temp:      47°C             
Usage of /:    26% of 12G       

[ General system configuration (beta): armbian-config ]


root@amlogic:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            757M     0  757M   0% /dev
tmpfs           174M  9.9M  164M   6% /run
/dev/data        12G  3.0G  8.5G  26% /
tmpfs           868M  424K  868M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           868M     0  868M   0% /sys/fs/cgroup
tmpfs           868M  4.0K  868M   1% /tmp
log2ram          50M  4.7M   46M  10% /var/log
tmpfs           174M     0  174M   0% /run/user/107
tmpfs           174M     0  174M   0% /run/user/0
tmpfs           174M  4.0K  174M   1% /run/user/1000
root@amlogic:~# lsmod
Module                  Size  Used by
bnep                   11404  2
hci_uart               21837  1
bluetooth             251912  7 bnep,hci_uart
6lowpan_iphc            5983  1 bluetooth
zram                    8953  4
aml_nftl_dev           95108  0


root@amlogic:~# lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME         FSTYPE   SIZE MOUNTPOINT LABEL
zram0               216.9M [SWAP]     
zram1               216.9M [SWAP]     
zram2               216.9M [SWAP]     
zram3               216.9M [SWAP]     
mmcblk0rpmb             4M            
mmcblk0boot0            4M            
mmcblk0boot1            4M            
mmcblk0              14.6G           

 

root@amlogic:~# armbianmonitor -u
System diagnosis information will now be uploaded to http://ix.io/PXx
 

Posted

I confirm, Armbian runs fine from eMMC.

I ran this command before I started install.sh:  sudo apt autoremove && sudo apt autoclean && sudo apt clean

 

If you look at lsmod, Le Potato doesn't have Bluetooth or WiFi. Can I blacklist some of the modules ?

Posted

looks like this

root@amlogic:/etc# modprobe dhd
modprobe: ERROR: could not insert 'dhd': No such device
root@amlogic:/etc# 
root@amlogic:/etc# modprobe wifi_dummy 
root@amlogic:/etc# 
root@amlogic:/etc# lsmod
Module                  Size  Used by
wifi_dummy               806  0
cfg80211              415017  0
bnep                   11404  2
hci_uart               21837  1
bluetooth             251912  7 bnep,hci_uart
6lowpan_iphc            5983  1 bluetooth
zram                    8953  4
aml_nftl_dev           95108  0

 

Posted

I recovered the system by re-inserting the usb stick, rebooting from it and running ./install.sh

Here are some important questions:

1- is it not possible to edit fstab once the system is running from FLASH?

2- How to automatically run the modprobe wifi_dummy command so that the wifi works on bootup?

3- is it possible to run apt-get update && apt-get upgrade && apt-get dist-upgrade while running from NAND?

4- can the swap partition be moved to the external USB diskdrive?

5- is there an easy way to let the system install all new software (like lamp) on the USB drive

 

Thanks again! At least i am still alive.. hardly breathing thoug

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines