[orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Discussions sur les Orange Pi (R1, Zéro, etc.)
http://www.orangepi.org/
Post Reply
jeanmarc
Posts: 132
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

[orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jeanmarc »

Bonjour,
Pour compléter le post précédent ( cf https://forum.armwizard.org/viewtopic.php?f=17&t=14 ), l'objet de ce post consiste à vérifier la bonne prise en compte d'un u-boot plus récent (2020.01) sans modification par ailleurs du rootfs et du noyau Linux, donc dans les mêmes conditions que celles décrites dans le post ci-dessu.

La production du u-boot récent est décrite ici : https://forum.armwizard.org/viewtopic.php?f=15&t=13

Après récupération du package u-boot (via scp ou autre) dans le répertoire /tmp

Code: Select all


root@orangepi-r1:~# ls -altr /tmp/*deb                                                                                                                                                       
-rw-r--r-- 1 root root 212832 Apr 16 07:42 /tmp/u-boot-orangepi-r1_2020.01-1_armhf.deb                                                                                                       
root@orangepi-r1:~# 

... installation du package u-boot sur la cible

Code: Select all

...
Building dependency tree                                                                                                                                                                     
Reading state information... Done                                                                                                                                                            
Note, selecting 'u-boot-orangepi-r1' instead of '/tmp/u-boot-orangepi-r1_2020.01-1_armhf.deb'                                                                                                
The following NEW packages will be installed:                                                                                                                                                
  u-boot-orangepi-r1                                                                                                                                                                         
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.                                                                                                                               
Need to get 0 B/213 kB of archives.                                                                                                                                                          
After this operation, 484 kB of additional disk space will be used.                                                                                                                          
Get:1 /tmp/u-boot-orangepi-r1_2020.01-1_armhf.deb u-boot-orangepi-r1 armhf 2020.01-1 [213 kB]                                                                                                
Selecting previously unselected package u-boot-orangepi-r1.                                                                                                                                  
(Reading database ... 20964 files and directories currently installed.)                                                                                                                      
Preparing to unpack .../u-boot-orangepi-r1_2020.01-1_armhf.deb ...                                                                                                                           
Unpacking u-boot-orangepi-r1 (2020.01-1) ...................................]                                                                                                                
Setting up u-boot-orangepi-r1 (2020.01-1) ...##.............................]                                                                                                                
root@orangepi-r1:~# 

Je vous invite à consulter la doc disponible à l'endroit de référence prévu par Debian ...

Code: Select all

root@orangepi-r1:~# dpkg -L  u-boot-orangepi-r1 |grep doc                                                                                                                                    
/usr/share/doc                                                                                                                                                                               
/usr/share/doc/u-boot-orangepi-r1                                                                                                                                                            
/usr/share/doc/u-boot-orangepi-r1/changelog.Debian.gz                                                                                                                                        
/usr/share/doc/u-boot-orangepi-r1/install.u-boot-orangepi-r1.md                                                                                                                              
root@orangepi-r1:~# 
Pour des raisons de sûreté de l'équipement, à ce jour, l'installation de u-boot ne provoque pas de mise à jour des premiers secteurs de la flash de telle sorte que lors du reboot, il n'y a pas de prise en compte de cette installation.
Afin de prendre en compte le nouveau paquet u-boot franchement installé, il convient (à part lire la doc précédente !) d’exécuter les commandes magiques décrites dans ladite doc (!)

Code: Select all

/usr/share/doc/u-boot-orangepi-r1/install.u-boot-orangepi-r1.md                                                                                                                              
                                                                                                                                                                                             
sudo dd if=/dev/zero of=/dev/mmcblk0 bs=1k count=1023 seek=1 status=noxfer                                                                                                                   
sudo dd if=/boot/u-boot/u-boot-orangepi-r1 of=/dev/mmcblk0 bs=1024 seek=8 status=noxfer                                                                                                      
root@orangepi-r1:~# 

Bine entendu, il est acquis ici que le rootfs est effectivement bien monté sur un device de type mmcblk0 comme l'indique la commande suivant:

Code: Select all


root@orangepi-r1:~# mount |grep mmc                                                                                                                                                          
/dev/mmcblk0p1 on / type ext4 (rw,noatime,nodiratime,errors=remount-ro)                                                                                                                      
root@orangepi-r1:~# 

....donc

Code: Select all

~#  dd if=/dev/zero of=/dev/mmcblk0 bs=1k count=1023 seek=1 stat                                                                                                            
1023+0 records in                                                                                                                                                                            
1023+0 records out          
                                                                                                                                                                 
~#   dd if=/boot/u-boot/u-boot-orangepi-r1 of=/dev/mmcblk0 bs=1024 seek=8 status=noxfer
440+1 records in                                                                                                                                                                             
440+1 records out                                                                                                                                                                            
root@orangepi-r1:~# 

puis reboot ...

Code: Select all

[1009552.911788] systemd-shutdown[1]: Hardware watchdog 'sunxi-wdt', version 0
[1009552.920739] systemd-shutdown[1]: Unmounting file systems.
[1009552.927342] systemd-shutdown[1]: Remounting '/' read-only with options 'errors=remount-ro'.
[1009552.961563] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
[1009553.024280] systemd-shutdown[1]: Remounting '/' read-only with options 'errors=remount-ro'.
[1009553.033117] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
[1009553.039690] systemd-shutdown[1]: All filesystems unmounted.
[1009553.045461] systemd-shutdown[1]: Deactivating swaps.
[1009553.050780] systemd-shutdown[1]: All swaps deactivated.
[1009553.056209] systemd-shutdown[1]: Detaching loop devices.
[1009553.090751] reboot: Restarting system

U-Boot SPL 2020.01 (Apr 16 2020 - 09:30:09 +0200)
DRAM: 256 MiB
Trying to boot from MMC1


U-Boot 2020.01 (Apr 16 2020 - 09:30:09 +0200) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi R1
DRAM:  256 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... Unable to use mmc 0:1... In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
Bus usb@1c1a000: USB EHCI 1.00
Bus usb@1c1a400: USB OHCI 1.0
Bus usb@1c1b000: USB EHCI 1.00
scanning bus usb@1c1a000 for devices... 1 USB Device(s) found
scanning bus usb@1c1a400 for devices... 1 USB Device(s) found
scanning bus usb@1c1b000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1759 bytes read in 3 ms (572.3 KiB/s)
## Executing script at 43100000
366 bytes read in 3 ms (119.1 KiB/s)
391 bytes read in 3 ms (127 KiB/s)
5321000 bytes read in 241 ms (21.1 MiB/s)
17919 bytes read in 7 ms (2.4 MiB/s)
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
   Loading Device Tree to 49ff8000, end 49fff5fe ... OK

Starting kernel ...

La bonne nouvelle, c'est que la prise en compte de nouveau u-boot installé est effective et bien prise en compte sur l'équipement
La mauvaise nouvelle est que le kernel ne démarre pas ...

:twisted:
Last edited by jeanmarc on Thu Apr 16, 2020 12:38 pm, edited 1 time in total.
Cordialement
jeanmarc
Posts: 132
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

Re: [orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jeanmarc »

Ci-joint le contenu de u-boot suite "à prise de main" dans la séquence de boot

Code: Select all


=> printenv
arch=arm
baudrate=115200
board=sunxi
board_name=sunxi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kerne
l_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=fel mmc0 usb0 pxe dhcp 
bootcmd=run distro_bootcmd
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "
${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010
:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_a
ddr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;seten
v efi_old_vci;
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
bootcmd_mmc0=devnum=0; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=devnum=0; run usb_boot
bootdelay=2
bootm_size=0xa000000
console=ttyS0,115200
cpu=armv7
dfu_alt_info_ram=kernel ram 0x42000000 0x1000000;fdt ram 0x43000000 0x100000;ramdisk ram 0x43300000 0x4000000
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
eth1addr=12:42:15:49:fb:fe
ethaddr=02:42:15:49:fb:fe
fdt_addr_r=0x43000000
fdtcontroladdr=4bf59020
fdtfile=sun8i-h2-plus-orangepi-r1.dtb
kernel_addr_r=0x42000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
mmc_bootdev=0
partitions=name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};name=loader2,size=984k,uuid=${uuid_gpt_loader2};name=esp,size=128M,bootable,uuid=${uuid_gpt_esp};name=sys
tem,size=-,uuid=${uuid_gpt_system};
preboot=usb start
pxefile_addr_r=0x43200000
ramdisk_addr_r=0x43300000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run
 scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devty
pe} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix in ${efi_dtb_
prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} 
efi/boot/bootarm.efi; then echo Found EFI removable media binary efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; 
echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${scrip
t}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x43100000
serial#=02c000421549fbfe
soc=sunxi
stderr=serial
stdin=serial,usbkbd
stdout=serial
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
uuid_gpt_esp=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
uuid_gpt_system=69dad710-2ce4-4e3c-b16c-21a1d49abed3

Environment size: 4440/131068 bytes
=> 

Cordialement
jeanmarc
Posts: 132
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

Re: [orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jeanmarc »

Le résultat de la commande ....

Code: Select all

=> mmcinfo
Device: mmc@1c0f000
Manufacturer ID: 3
OEM: 5344
Name: SC16G 
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
=> 

Cordialement
jmaurin
Posts: 14
Joined: Wed Apr 15, 2020 1:32 pm

Re: [orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jmaurin »

Pourrais-tu nous donner le contenu du fichier boot.scr ?
jeanmarc
Posts: 132
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

Re: [orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jeanmarc »

Le contenu du fichier boot.scr est le suivant :

ansible@solo:/tmp/flash$ cat boot.scr

Code: Select all

'V(?y[U¡#
# ----------------------------------------------------------------------------
#
# DFT rootfs u-boot script for Generic Board
#
# Generation date : 2018-07-23 11:34:27
# DFT version     : 0.6.10
#

#
# Definition of environment variables
#
setenv fstype         ext4
setenv fdtfile        'boot/default.dtb'
setenv image          'boot/zImage'
setenv mmcroot        '/dev/mmcblk0p1 rootwait rw'
setenv mmcdev         0
setenv mmcpart        1
setenv uenv_file      boot/uEnv.txt
setenv cmdline_file   boot/kernel_cmdline_extra_parameters.txt


#
# Test if a uEnv file exist in /boot, and try to merge it
#
if test -e mmc ${mmcdev}:${mmcpart} ${uenv_file}; then
  load mmc ${mmcdev}:${mmcpart} ${scriptaddr} ${uenv_file}
  env import -t ${scriptaddr} ${filesize}
fi

#
# Test if a file containing extra kernel cmdline parameters exist
# in /boot, and try to merge it
#
if test -e mmc ${mmcdev}:${mmcpart} ${cmdline_file}; then
  load mmc ${mmcdev}:${mmcpart} ${scriptaddr} ${cmdline_file}
  env import -t ${scriptaddr} ${filesize}
fi

# Defines the mmcargs only once environment files have been loaded
setenv mmcargs 'setenv bootargs console=${console} root=${mmcroot} rootfstype=${fstype} ${kernel_cmdline_extra_parameters}'

#
# Definition of the macro needed to load DTB Kernel and initrd to ram
#
setenv loadfdt 'load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}'
setenv loadimage 'load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} ${image}'

#
# Definition of the macro needed to run the kernel using only dtb (no initrd in rootfs mode)
#
setenv mmcboot 'run mmcargs ; run loadimage ; run loadfdt ; bootz ${kernel_addr_r} - ${fdt_addr_r}'

#
# Thunderbirds are go !
#
run mmcboot

Cordialement
jeanmarc
Posts: 132
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

Re: [orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jeanmarc »

La version pour l’exécution à la main en pas à pas des commande de boot.scr est la suivante .....

Code: Select all

=> setenv fstype         ext4
=> setenv fdtfile        'boot/default.dtb'
=> setenv image          'boot/zImage'
=> setenv mmcroot        '/dev/mmcblk0p1 rootwait rw'
=> setenv mmcdev         0
=> setenv mmcpart        1
=> setenv uenv_file      boot/uEnv.txt
=> setenv cmdline_file   boot/kernel_cmdline_extra_parameters.txt
=> if test -e mmc ${mmcdev}:${mmcpart} ${uenv_file}; then
>   load mmc ${mmcdev}:${mmcpart} ${scriptaddr} ${uenv_file}
>   env import -t ${scriptaddr} ${filesize}
> fi
366 bytes read in 3 ms (119.1 KiB/s)
=> if test -e mmc ${mmcdev}:${mmcpart} ${cmdline_file}; then
>   load mmc ${mmcdev}:${mmcpart} ${scriptaddr} ${cmdline_file}
>   env import -t ${scriptaddr} ${filesize}
> fi
391 bytes read in 3 ms (127 KiB/s)
=> setenv mmcargs 'setenv bootargs console=${console} root=${mmcroot} rootfstype=${fstype} ${kernel_cmdline_extra_parameters}'
=> setenv loadfdt 'load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}'
=> setenv loadimage 'load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} ${image}'
=> setenv mmcboot 'run mmcargs ; run loadimage ; run loadfdt ; bootz ${kernel_addr_r} - ${fdt_addr_r}'
=> printenv mmcboot
mmcboot=run mmcargs ; run loadimage ; run loadfdt ; bootz ${kernel_addr_r} - ${fdt_addr_r}
=> printenv mmcargs
mmcargs=setenv bootargs console=${console} root=${mmcroot} rootfstype=${fstype} ${kernel_cmdline_extra_parameters}
=> 

Cordialement
jeanmarc
Posts: 132
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

Re: [orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jeanmarc »

Réinitialisation de l'environnement et édition du résultat

Code: Select all


=> env default -a
## Resetting to default environment
=> printenv
arch=arm
baudrate=115200
board=sunxi
board_name=sunxi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${
devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};e
lse bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=fel mmc0 usb0 pxe dhcp 
bootcmd=run distro_bootcmd
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile
}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};set
env efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_addr_r}; then tftp
boot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r
} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv 
efi_old_vci;
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
bootcmd_mmc0=devnum=0; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=devnum=0; run usb_boot
bootdelay=2
bootm_size=0xa000000
console=ttyS0,115200
cpu=armv7
dfu_alt_info_ram=kernel ram 0x42000000 0x1000000;fdt ram 0x43000000 0x100000;ramdisk ram 0x43300000 0x4000000
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
fdt_addr_r=0x43000000
fdtfile=sun8i-h2-plus-orangepi-r1.dtb
kernel_addr_r=0x42000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
partitions=name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};name=loader2,size=984k,uuid=${uuid_gpt_loader2};name=esp,size=128M,boot
able,uuid=${uuid_gpt_esp};name=system,size=-,uuid=${uuid_gpt_system};
preboot=usb start
pxefile_addr_r=0x43200000
ramdisk_addr_r=0x43300000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; 
run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in
 ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}
.dtb; fi; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_
efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootarm.efi; then echo Found EFI removable media binary efi/b
oot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_s
yslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Fo
und U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x43100000
soc=sunxi
stderr=serial
stdin=serial,usbkbd
stdout=serial
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
uuid_gpt_esp=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
uuid_gpt_system=69dad710-2ce4-4e3c-b16c-21a1d49abed3

Environment size: 4324/131068 bytes
=> 


Cordialement
jeanmarc
Posts: 132
Joined: Sun Mar 22, 2020 5:28 pm
Location: Essonne

Re: [orangepir1] [dft] u-boot: 2020.01, log de boot avec kernel 4.17.9

Post by jeanmarc »

Aie ....

Code: Select all

=> env default -a
## Resetting to default environment
=> saveenv
Saving Environment to FAT... Unable to use mmc 0:1... Failed (1)
=> 
=> mmc list
mmc@1c0f000: 0 (SD)
mmc@1c10000: 1
=> 
=> ls mmc 0
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
<DIR>       4096 run
<DIR>       4096 boot
<DIR>       4096 etc
<DIR>       4096 srv
<SYM>         19 vmlinuz.old
<DIR>       4096 sys
<DIR>       4096 tmp
<DIR>       4096 media
<DIR>       4096 var
<DIR>       4096 mnt
<DIR>       4096 dev
<DIR>       4096 usr
<DIR>       4096 lib
<DIR>       4096 home
<SYM>         22 initrd.img
<DIR>       4096 sbin
<DIR>       4096 bin
<SYM>         22 initrd.img.old
<DIR>       4096 root
<DIR>       4096 opt
<SYM>         19 vmlinuz
<DIR>       4096 proc
            1759 boot.scr
=> 
=> ls mmc 1
Card did not respond to voltage select!
=> 
=> ls mmc 0 boot
<DIR>       4096 .
<DIR>       4096 ..
         2322000 System.map-4.17.9
          143691 config-4.17.9
         5321000 vmlinuz-4.17.9
<SYM>         33 default.dtb
<SYM>         14 zImage
<SYM>         17 initrd.img
         7510849 initrd.img-4.17.9
<DIR>      12288 dtb
             411 kernel_cmdline_extra_parameters.txt
             366 uEnv.txt
<DIR>       4096 u-boot
=> 
CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.1 | VT102 | Online 


Cordialement
Post Reply