QGB / linux-3.18.y

Other
0 stars 0 forks source link

uboot usb #3

Open QGB opened 2 years ago

QGB commented 2 years ago
fastboot# 
error reading partinfo...try to boot raw

Loading from USB device 0, partition 1: Name: Raw  Type: U-Boot
   Image Name:   Linux-3.18.24_s40
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4951192 Bytes = 4.7 MiB
   Load Address: 02000000
   Entry Point:  02000000
.................................................................................................................................................................................................................................................

fastboot# setenv autostart yes
fastboot# usbboot 0x02000000 0
error reading partinfo...try to boot raw

Loading from USB device 0, partition 1: Name: Raw  Type: U-Boot
   Image Name:   Linux-3.18.24_s40
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4951192 Bytes = 4.7 MiB
   Load Address: 02000000
   Entry Point:  02000000
.................................................................................................................................................................................................................................................Automatic boot of image at addr 0x02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.18.24_s40
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4951192 Bytes = 4.7 MiB
   Load Address: 02000000
   Entry Point:  02000000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK
Reserve Memory
    Start Addr:          0x3FFFE000
    Bound Addr:          0xF900000
    Free  Addr:          0x3F530000
    Alloc Block:  Addr         Size
                  0x3FFFB000   0x2000
                  0x3FF7A000   0x80000
                  0x3FEB9000   0xC0000
                  0x3F6CE000   0x7EA000
                  0x3F6CA000   0x3000
                  0x3F534000   0x195000
                  0x3F530000   0x3000

ATAGS [0x00000100 - 0x000003F4], 756Bytes

Starting kernel ...

*** irq: undefined instruction
undefined instruction
pc : [<600001d3>]          lr : [<00c62e9c>]
sp : 00bfffb8  ip : 00000020     fp : 00000000
r10: 00000000  r9 : ffff8000     r8 : 005fffe0
r7 : 02000000  r6 : 005fffc4     r5 : 00000100  r4 : 00001f40
r3 : 00000004  r2 : 00000100     r1 : 00001f40  r0 : 56190527
Flags: nzcv  IRQs on  FIQs on  Mode UK8_26
Resetting CPU ...

resetting ...
*** CPU will be reset 
Bootrom start
Boot from eMMC
Starting fastboot ...

System startup
DDRS
Reg Version:  v1.1.0
QGB commented 2 years ago

dd if=/mnt/e/c/2022-10/image/hi_kernel.bin of=/dev/mmcblk1

fastboot# usbboot 0x02000000 0
error reading partinfo...try to boot raw

Loading from USB device 0, partition 1: Name: Raw  Type: U-Boot
   Image Name:   Linux-3.18.24_s40
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4951192 Bytes = 4.7 MiB
   Load Address: 02000000
   Entry Point:  02000000
.................................................................................................................................................................................................................................................Automatic boot of image at addr 0x02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.18.24_s40
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4951192 Bytes = 4.7 MiB
   Load Address: 02000000
   Entry Point:  02000000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK
Reserve Memory
    Start Addr:          0x3FFFE000
    Bound Addr:          0xF900000
    Free  Addr:          0x3F530000
    Alloc Block:  Addr         Size
                  0x3FFFB000   0x2000
                  0x3FF7A000   0x80000
                  0x3FEB9000   0xC0000
                  0x3F6CE000   0x7EA000
                  0x3F6CA000   0x3000
                  0x3F534000   0x195000
                  0x3F530000   0x3000

ATAGS [0x00000100 - 0x000003F4], 756Bytes

Starting kernel ...

*** irq: undefined instruction
undefined instruction
pc : [<600001d3>]          lr : [<00c62e9c>]
sp : 00bfffb8  ip : 00000020     fp : 00000000
r10: 00000000  r9 : ffff8000     r8 : 005fffe0
r7 : 02000000  r6 : 005fffc4     r5 : 00000100  r4 : 00001f40
r3 : 00000004  r2 : 00000100     r1 : 00001f40  r0 : 00000c1e
Flags: nzcv  IRQs on  FIQs on  Mode UK8_26
Resetting CPU ...

resetting ...
*** CPU will be reset 
Bootrom start
Boot from eMMC
Starting fastboot ...

System startup
DDRS
QGB commented 2 years ago
fastboot# usbboot 0x0 0
error reading partinfo...try to boot raw

Loading from USB device 0, partition 1: Name: Raw  Type: U-Boot
   Image Name:   Linux-4.4.35_ecoo_81080868
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    9101643 Bytes = 8.7 MiB
   Load Address: 02000000
   Entry Point:  02000000
....................................................................................................................................................................................................................................................................................................................
*** irq: prefetch abort
prefetch abort
pc : [<600001d3>]          lr : [<00c6268c>]
sp : 00bfffb8  ip : 00cf68f4     fp : 00cf6f80
r10: 50008d80  r9 : 00cf6ec0     r8 : 005fffe0
r7 : 00001388  r6 : ff3eaaad     r5 : 70d517f5  r4 : 40c906d8
r3 : 0077e641  r2 : 00cf68f4     r1 : ff8819be  r0 : 0077e641
Flags: NZCv  IRQs on  FIQs off  Mode UK4_26
Resetting CPU ...

resetting ...
*** CPU will be re
Bootrom start
Boot from eMMC
Starting fastboot ...

System startup
DDRS
Reg Version:  v1.1.0
Reg Time:     2022/3/14  4:56:14
Reg Name:     hi3798mdmo1g_hi3798mv100_ddr3_1gbyte_16bitx2_4layers_emmc.reg

Jump to DDR

Fastboot 3.3.0_ecoo_81080868-dirty (teasiu@ecoo) (Aug 08 2022 - 04:21:12)

Fastboot:      Version 3.3.0
Build Date:    Aug  8 2022, 04:21:46
CPU:           Hi3796Mv100 
Boot Media:    eMMC
DDR Size:      1GB

MMC/SD controller initialization.
MMC/SD Card:
    MID:         0x90
    Read Block:  512 Bytes
    Write Block: 512 Bytes
    Chip Size:   7456M Bytes (High Capacity)
    Name:        "H8G1e"
    Chip Type:   MMC
    Version:     5.0
    Speed:       52000000Hz
    Mode:        DDR50
    Bus Width:   8bit
    Boot Addr:   0 Bytes
Net:   upWarning: failed to set MAC address
, downWarning: failed to set MAC address

Boot Env on eMMC
    Env Offset:          0x00100000
    Env Size:            0x00010000
    Env Range:           0x00010000
ID_WORD have already been locked

SDK Version: HiSTB_com_NAS_ubuntu_20220427

Reserve Memory
    Start Addr:          0x3FFFE000
    Bound Addr:          0xF900000
    Free  Addr:          0x3F530000
    Alloc Block:  Addr         Size
                  0x3FFFB000   0x2000
                  0x3FF7A000   0x80000
                  0x3FEB9000   0xC0000
                  0x3F6CE000   0x7EA000
                  0x3F6CA000   0x3000
                  0x3F534000   0x195000
                  0x3F530000   0x3000

Press Ctrl+C to stop autoboot
(Re)start USB...
USB0:   Register 1212 NbrPorts 2
USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1:   Register 1111 NbrPorts 1
USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80248d80
EHCI timed out on TD - token=0x80008d80
1 Storage Device(s) found

** Unable to use usb 0:1 for fatload **
stopping USB..

MMC read: dev # 0, block # 28672, count 20480 ... 20480 blocks read: OK

89538209 Bytes/s
## Booting kernel from Legacy Image at 01ffffc0 ...
   Image Name:   Linux-4.4.35_ecoo_81080868
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    9101643 Bytes = 8.7 MiB
   Load Address: 02000000
   Entry Point:  02000000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK
Reserve Memory
    Start Addr:          0x3FFFE000
    Bound Addr:          0xF900000
    Free  Addr:          0x3F530000
    Alloc Block:  Addr         Size
                  0x3FFFB000   0x2000
                  0x3FF7A000   0x80000
                  0x3FEB9000   0xC0000
                  0x3F6CE000   0x7EA000
                  0x3F6CA000   0x3000
                  0x3F534000   0x195000
                  0x3F530000   0x3000

ATAGS [0x00000100 - 0x000003F4], 756Bytes

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.4.35_ecoo_81080868 (teas
QGB commented 2 years ago
root@hi3798mv100:~#                                                
root@hi3798mv100:~# dd if=/dev/mmcblk0p9|pv|dd of=/dev/mmcblk1                                                         
5.69GiB 0:43:12 [4.33MiB/s] [             <=>                                                                         ]
14041088+0 records inMiB/s] [                                                                                    <=>  ]                
14041088+0 records out                                             
7189037056 bytes (7.2 GB, 6.7 GiB) copied, 3051.54 s, 2.4 MB/s                                                                         
6.70GiB 0:50:51 [2.25MiB/s] [                                                                                  <=>    ]                
14041088+0 records in                                                                                                                  
14041088+0 records out                                                                                                                 
7189037056 bytes (7.2 GB, 6.7 GiB) copied, 3056.99 s, 2.4 MB/s                                                                         
root@hi3798mv100:~#                                                
root@hi3798mv100:~#                                                                                                                    
root@hi3798mv100:~# mount /dev/mmcblk1 /mnt/e                                                                                          
root@hi3798mv100:~#                                                
root@hi3798mv100:~#           

root@hi3798mv100:~# ls -al /mnt/e
total 524380
drwxr-xr-x 19 root root      4096 Oct 24 13:13 .
drwxr-xr-x 10 root root      4096 Oct 27 02:40 ..
lrwxrwxrwx  1 root root         7 Feb 22  2022 bin -> usr/bin
drwxr-xr-x  2 root root      4096 Apr 15  2020 boot
drwx------  3 root root      4096 Oct 24 13:13 .deleted
drwxr-xr-x  2 root root      4096 Aug  8 02:54 dev
drwxr-xr-x 97 root root      4096 Oct 18 23:54 etc
drwxr-xr-x  3 root root      4096 Aug  8 02:52 home
lrwxrwxrwx  1 root root         7 Feb 22  2022 lib -> usr/lib
drwx------  2 root root     16384 Aug  8 03:03 lost+found
drwxr-xr-x  2 root root      4096 Feb 22  2022 media
drwxr-xr-x 10 root root      4096 Oct 27 02:40 mnt
-rw-r--r--  1 root root         0 Oct 27 11:51 null
drwxr-xr-x  6 root root      4096 Oct  5 03:15 opt
drwxr-xr-x  2 root root      4096 Apr 15  2020 proc
drw-r-xr-x  9 root root      4096 Oct 27 11:51 root
drwxr-xr-x 11 root root      4096 Aug  8 02:57 run
lrwxrwxrwx  1 root root         8 Feb 22  2022 sbin -> usr/sbin
drwxr-xr-x  3 root root      4096 Oct 24 17:42 srv
-rw-------  1 root root 536870912 Apr 21  2022 swapfile
drwxr-xr-x  2 root root      4096 Apr 15  2020 sys
drwxrwxrwt  2 root root      4096 Aug  8 03:03 tmp
drwxr-xr-x 11 root root      4096 Aug  8 02:52 usr
drwxr-xr-x 12 root root      4096 Aug  8 02:52 var
root@hi3798mv100:~# mount
/dev/mmcblk0p9 on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=476744k,nr_inodes=119186,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=95416k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,relatime)
overlay on /var/lib/docker/overlay2/e1bc300af591b32c4501003c68964de201444778484c924c09467683ef73eb4a/merged type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/K7BRJSMS7SZ4GKEFCXJA6XH6HW:/var/lib/docker/overlay2/l/QZ6HFL7OO2TVF732JJYGAG336G:/var/lib/docker/overlay2/l/QEF6COZDTT5WFJFKOWIMLRF6QC:/var/lib/docker/overlay2/l/DXJ3P6IKOPOKBD4QFJS2W3EXVC:/var/lib/docker/overlay2/l/GDRN7AXPZJYM463GV26QS7H2GQ,upperdir=/var/lib/docker/overlay2/e1bc300af591b32c4501003c68964de201444778484c924c09467683ef73eb4a/diff,workdir=/var/lib/docker/overlay2/e1bc300af591b32c4501003c68964de201444778484c924c09467683ef73eb4a/work)
nsfs on /run/docker/netns/default type nsfs (rw)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=95412k,mode=700)
/dev/mmcblk1 on /mnt/e type ext4 (rw,relatime,data=ordered)