ALPINE_VERSION="2018-11-09" rootfs 引导不起来?
laris opened this issue · comments
手工写入了一下,似乎引导不起来最新的rootfs
usb引导也是卡在最后。
gxl_p230_v1#setenv env_addr "0x10400000"
gxl_p230_v1#setenv kernel_addr "0x11000000"
gxl_p230_v1#setenv initrd_addr "0x13000000"
gxl_p230_v1#setenv dtb_mem_addr "0x1000000"
gxl_p230_v1#printenv env_addr
env_addr=0x10400000
gxl_p230_v1#printenv bootargs
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,576cvbs maxcpus=4 vout=576cvbs,enable hdmimode=1080p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 pq= androidboot.firstboot=0 androidboot.factorystep=-1 jtag=apao androidboot.hardware=amlogic androidboot.slot_suffix=_a quiet
gxl_p230_v1#printenv bootcmd
bootcmd=run storeboot
gxl_p230_v1#printenv storeboot
storeboot=if imgread kernel ${boot_part} ${loadaddr}; then bootm ${loadaddr}; fi;run update;
gxl_p230_v1#printenv update
update=run usb_burning; run sdc_burning; if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;
gxl_p230_v1#printenv boot_part
boot_part=boot
gxl_p230_v1#printenv loadaddr
loadaddr=1080000
gxl_p230_v1#setenv boot_start booti ${kernel_addr} ${initrd_addr} ${dtb_mem_addr}
gxl_p230_v1#if ext4load mmc 1 ${kernel_addr} vmlinuz-amlogic; then if ext4load mmc 1 ${initrd_addr} uInitrd; then if ext4load mmc 1 ${env_addr} uEnv.ini; then env import -t ${env_addr} ${filesize}; fi; if ext4load mmc 1 ${dtb_mem_addr} ${dtb_name}; then run boot_start;fi;fi;fi;
** File not found vmlinuz-amlogic **
gxl_p230_v1#ext4ls mmc 1
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 4096 bin
<DIR> 4096 boot
<DIR> 4096 dev
<DIR> 4096 etc
<DIR> 4096 home
<DIR> 4096 lib
<DIR> 4096 media
<DIR> 4096 mnt
<DIR> 4096 opt
<DIR> 4096 proc
<DIR> 4096 root
<DIR> 4096 run
<DIR> 4096 sbin
<DIR> 4096 srv
<DIR> 4096 sys
<DIR> 4096 tmp
<DIR> 4096 var
<DIR> 4096 usr
gxl_p230_v1#ext4ls mmc 1 /boot
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 4096 dtbs
139003 config-amlogic
17326592 vmlinuz-amlogic
3371650 initramfs-amlogic
1242 s905_autoscript
221 uEnv.ini
3454210 System.map-amlogic
3371714 uInitrd
<SYM> 4 dtb
480 emmc_autoscript.cmd
462 emmc_autoscript.cmd.orig
552 emmc_autoscript
gxl_p230_v1#if ext4load mmc 1 ${kernel_addr} /boot/vmlinuz-amlogic ; then if ext4load mmc 1 ${initrd_addr} /boot/uInitrd; then if ext4load mmc 1 ${env_addr} /boot/uEnv.ini; then env import -t ${env_addr} ${filesize}; fi; if ext4load mmc 1 ${dtb_mem_addr} ${dtb_name}; then run boot_start;fi;fi;fi;
17326592 bytes read in 536 ms (30.8 MiB/s)
3371714 bytes read in 113 ms (28.5 MiB/s)
221 bytes read in 11 ms (19.5 KiB/s)
25986 bytes read in 17 ms (1.5 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: 3371650 Bytes = 3.2 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
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
Loading Ramdisk to 73b90000, end 73ec7282 ... OK
Loading Device Tree to 000000001fff6000, end 000000001ffff581 ... OK
fdt_instaboot: no instaboot image
Starting kernel ...
uboot time: 548822093 us
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.18.14-2-amlogic (packager@6c0cba3d7b0b) (gcc version 8.2.0 (Alpine 8.2.0)) #3-Alpine SMP PREEMPT Thu Nov 8 10:26:15 UTC 2018
[ 0.000000] Machine model: Phicomm N1
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000067c00000, size 188 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x3f4 with crng_init=0
[ 0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s56280 r8192 d29736 u94208
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 478528
[ 0.000000] Kernel command line: root=LABEL=ROOTFS rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 1694360K/1944576K available (9788K kernel code, 920K rwdata, 5564K rodata, 576K init, 1009K bss, 57704K reserved, 192512K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 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] GIC: Using split EOI/Deactivate mode
[ 0.000000] irq_meson_gpio: 110 to 8 gpio interrupt mux initialized
[ 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: 440795202592 ns
[ 0.000003] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000333] Console: colour dummy device 80x25
[ 0.000605] console [tty0] enabled
[ 0.000626] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000646] pid_max: default: 32768 minimum: 301
[ 0.000741] Security Framework initialized
[ 0.000798] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000818] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.024014] ASID allocator initialised with 32768 entries
[ 0.032001] Hierarchical SRCU implementation.
[ 0.041332] EFI services will not be available.
[ 0.048045] smp: Bringing up secondary CPUs ...
[ 0.080246] Detected VIPT I-cache on CPU1
[ 0.080289] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.112281] Detected VIPT I-cache on CPU2
[ 0.112316] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.144325] Detected VIPT I-cache on CPU3
[ 0.144357] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.144416] smp: Brought up 1 node, 4 CPUs
[ 0.144478] SMP: Total of 4 processors activated.
[ 0.144490] CPU features: detected: 32-bit EL0 Support
[ 0.147900] CPU: All CPU(s) started at EL2
[ 0.147922] alternatives: patching kernel code
[ 0.148648] devtmpfs: initialized
[ 0.152863] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.152897] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.157400] pinctrl core: initialized pinctrl subsystem
[ 0.158305] DMI not present or invalid.
[ 0.158596] NET: Registered protocol family 16
[ 0.158996] audit: initializing netlink subsys (disabled)
[ 0.159119] audit: type=2000 audit(0.156:1): state=initialized audit_enabled=0 res=1
[ 0.159968] cpuidle: using governor menu
[ 0.160226] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[ 0.160248] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.161179] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.161310] Serial: AMBA PL011 UART driver
[ 0.176931] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.177277] cryptd: max_cpu_qlen set to 1000
[ 0.179156] SCSI subsystem initialized
[ 0.179411] usbcore: registered new interface driver usbfs
[ 0.179468] usbcore: registered new interface driver hub
[ 0.179552] usbcore: registered new device driver usb
[ 0.179854] media: Linux media interface: v0.10
[ 0.179898] videodev: Linux video capture interface: v2.00
[ 0.180005] pps_core: LinuxPPS API ver. 1 registered
[ 0.180021] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.180054] PTP clock support registered
[ 0.180369] Advanced Linux Sound Architecture Driver Initialized.
[ 0.181186] clocksource: Switched to clocksource arch_sys_counter
[ 0.181395] VFS: Disk quotas dquot_6.6.0
[ 0.181454] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.181552] FS-Cache: Loaded
[ 0.181788] CacheFiles: Loaded
[ 0.187270] NET: Registered protocol family 2
[ 0.187648] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)
[ 0.187691] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.187805] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.188006] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.188112] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.188162] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.188308] NET: Registered protocol family 1
[ 0.188637] RPC: Registered named UNIX socket transport module.
[ 0.188654] RPC: Registered udp transport module.
[ 0.188663] RPC: Registered tcp transport module.
[ 0.188672] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.188825] Unpacking initramfs...
[ 0.318210] Freeing initrd memory: 3292K
[ 0.318880] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.319173] kvm [1]: 8-bit VMID
[ 0.320169] kvm [1]: vgic interrupt IRQ1
[ 0.320264] kvm [1]: Hyp mode initialized successfully
[ 0.324109] Initialise system trusted keyrings
[ 0.324243] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.330709] NFS: Registering the id_resolver key type
[ 0.330746] Key type id_resolver registered
[ 0.330755] Key type id_legacy registered
[ 0.330773] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.331041] JFS: nTxBlock = 8192, nTxLock = 65536
[ 0.335493] pstore: using deflate compression
[ 0.337930] Key type asymmetric registered
[ 0.337952] Asymmetric key parser 'x509' registered
[ 0.338139] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.338273] io scheduler noop registered (default)
[ 0.338416] io scheduler cfq registered
[ 0.347908] (NULL device *): Failed to create dummy-system-controller@0 debugfs directory
[ 0.348219] soc soc0: Amlogic Meson GXL (S905D) Revision 21:d (4:2) Detected
[ 0.351610] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.353362] c11084c0.serial: ttyAML1 at MMIO 0xc11084c0 (irq = 10, base_baud = 1500000) is a meson_uart
[ 0.353527] serial serial0: tty port ttyAML1 registered
[ 0.353765] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 13, base_baud = 1500000) is a meson_uart
[ 1.047725] console [ttyAML0] enabled
[ 1.056902] loop: module loaded
[ 1.058244] libphy: Fixed MDIO Bus: probed
[ 1.058988] tun: Universal TUN/TAP device driver, 1.6
[ 1.065080] meson8b-dwmac c9410000.ethernet: PTP uses main clock
[ 1.069456] meson8b-dwmac c9410000.ethernet: no reset control found
[ 1.075964] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[ 1.082732] meson8b-dwmac c9410000.ethernet: DWMAC1000
[ 1.087903] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported
[ 1.095316] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported
[ 1.102740] meson8b-dwmac c9410000.ethernet: COE Type 2
[ 1.107908] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported
[ 1.114896] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported
[ 1.121304] meson8b-dwmac c9410000.ethernet: Normal descriptors
[ 1.127146] meson8b-dwmac c9410000.ethernet: Ring mode enabled
[ 1.132922] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.177192] libphy: stmmac: probed
[ 2.178472] dwc3 c9000000.dwc3: Failed to get clk 'ref': -2
[ 2.181731] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.186989] ehci-platform: EHCI generic platform driver
[ 2.192300] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.198281] ohci-platform: OHCI generic platform driver
[ 2.203993] usbcore: registered new interface driver usb-storage
[ 2.210660] mousedev: PS/2 mouse device common for all mice
[ 2.215614] i2c /dev entries driver
[ 2.219177] Requesting IRQ 34
[ 2.222673] sdhci: Secure Digital Host Controller Interface driver
[ 2.227424] sdhci: Copyright(c) Pierre Ossman
[ 2.231759] Synopsys Designware Multimedia Card Interface Driver
[ 2.238969] meson-gx-mmc d0072000.mmc: Got CD GPIO
[ 2.269130] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[ 2.296056] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.296720] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.302590] meson-sm: secure-monitor enabled
[ 2.307219] usbcore: registered new interface driver usbhid
[ 2.311809] usbhid: USB HID core driver
[ 2.315851] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[BL31]: tee size: 0
[ 2.326198] meson-audio-core c1105400.audio: Failed to create c1105400.audio debugfs directory
[ 2.335998] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 2.339075] Initializing XFRM netlink socket
[ 2.342948] NET: Registered protocol family 10
[ 2.347676] Segment Routing with IPv6
[ 2.351338] NET: Registered protocol family 17
[ 2.354918] l2tp_core: L2TP core driver, V2.0
[ 2.357878] mmc1: new HS200 MMC card at address 0001
[ 2.359151] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 2.364704] mmcblk1: mmc1:0001 NCard 7.28 GiB
[ 2.369630] l2tp_netlink: L2TP netlink interface
[ 2.374402] mmcblk1boot0: mmc1:0001 NCard partition 1 4.00 MiB
[ 2.378679] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 2.384798] mmcblk1boot1: mmc1:0001 NCard partition 2 4.00 MiB
[ 2.390398] l2tp_debugfs: L2TP debugfs support
[ 2.396434] mmcblk1rpmb: mmc1:0001 NCard partition 3 4.00 MiB, chardev (242:0)
[ 2.400632] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 2.400697] 9pnet: Installing 9P2000 support
[ 2.409297] mmcblk1: p1
[ 2.414354] Key type dns_resolver registered
[ 2.425839] registered taskstats version 1
[ 2.429272] Loading compiled-in X.509 certificates
[ 2.434059] Unable to create integrity sysfs dir: -19
[ 2.446569] meson-drm d0100000.vpu: Queued 2 outputs on vpu
[ 2.446952] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.453081] [drm] No driver support for vblank timestamp query.
[ 2.459026] meson-drm d0100000.vpu: CVBS Output connector not available
[ 2.493232] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[ 2.497803] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[ 2.505753] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops meson_dw_hdmi_ops)
[ 2.512769] [drm] Cannot find any crtc or sizes
[ 2.517513] [drm] Initialized meson 1.0.0 20161109 for d0100000.vpu on minor 0
[ 2.524665] libphy: mdio_mux: probed
[ 2.528270] libphy: mdio_mux: probed
[ 2.533994] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.536846] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 2.545025] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f664 hci version 0x100 quirks 0x0000000002010010
[ 2.553788] xhci-hcd xhci-hcd.0.auto: irq 37, io mem 0xc9000000
[ 2.560218] hub 1-0:1.0: USB hub found
[ 2.563351] hub 1-0:1.0: 2 ports detected
[ 2.567559] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.572724] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 2.580310] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 2.586905] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.595338] hub 2-0:1.0: USB hub found
[ 2.598620] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 2.607242] scpi_protocol scpi: SCP Protocol legacy pre-1.0 firmware
domain-0 init dvfs: 4
[ 2.623269] asoc-simple-card sound: i2s-hifi <-> meson-i2s-dai.1.auto mapping ok
[ 2.625034] asoc-simple-card sound: ASoC: no DMI vendor name!
[ 2.632486] hctosys: unable to open rtc device (rtc0)
[ 2.635934] VDDAO_3V3: disabling
[ 2.638922] ALSA device list:
[ 2.641900] #0: meson-gx-audio
[ 2.645411] Freeing unused kernel memory: 576K
[ 2.901230] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 2.941436] random: fast init done
[ 3.052534] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 3.053886] scsi host0: usb-storage 1-1:1.0
[ 3.189255] usb 1-2: new high-speed USB device number 3 using xhci-hcd
[ 3.261512] EXT4-fs (mmcblk1p1): mounted filesystem with writeback data mode. Opts: data=writeback
[ 3.340756] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 3.341669] scsi host1: usb-storage 1-2:1.0
[ 3.521260] [drm] Cannot find any crtc or sizes
PS:
1, alpine*.img dd write into usb disk
2, ttl boot into uboot, manual load kernel/initrd/etc. via armbian
3, manual format emmc and copy alpine usb disk into emmc.
maybe i need to test again.
重装了一遍,似乎还是不行
+ which mkimage
+ which parted
+ which unzip
+ ALPINE_VERSION=2018-11-09
+ echo Download Alpine OS 2018-11-09
Download Alpine OS 2018-11-09
+ losetup --find --show -P 2018-11-09-alpine-n1-aarch64.img
+ LOOP_DEV=/dev/loop0
+ mkdir -p /tmp/alpine
+ mount /dev/loop0p2 /tmp/alpine
+ mount /dev/loop0p1 /tmp/alpine/boot
+ echo Start script create MBR and filesystem
Start script create MBR and filesystem
+ DEV_EMMC=/dev/mmcblk1
+ echo Start backup u-boot default
Start backup u-boot default
+ dd if=/dev/mmcblk1 of=/boot/u-boot-default.img bs=1M count=4
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.0717818 s, 58.4 MB/s
+ echo Start create MBR and partittion
Start create MBR and partittion
+ parted -s /dev/mmcblk1 mklabel msdos
+ parted -s /dev/mmcblk1 mkpart primary fat32 700M 828M
+ parted -s /dev/mmcblk1 mkpart primary ext4 829M 100%
+ echo Start restore u-boot
Start restore u-boot
+ dd if=/boot/u-boot-default.img of=/dev/mmcblk1 conv=fsync bs=1 count=442
442+0 records in
442+0 records out
442 bytes copied, 0.00458742 s, 96.4 kB/s
+ dd if=/boot/u-boot-default.img of=/dev/mmcblk1 conv=fsync bs=512 skip=1 seek=1
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.814415 s, 5.1 MB/s
+ sync
+ echo Done
Done
+ echo Start copy system for eMMC.
Start copy system for eMMC.
+ mkdir -p /ddbr
+ chmod 777 /ddbr
+ PART_BOOT=/dev/mmcblk1p1
+ PART_ROOT=/dev/mmcblk1p2
+ DIR_INSTALL=/ddbr/install
+ [ -d /ddbr/install ]
+ rm -rf /ddbr/install
+ mkdir -p /ddbr/install
+ grep -q /dev/mmcblk1p1 /proc/mounts
+ echo -n Formatting BOOT partition...
Formatting BOOT partition...+ mkfs.vfat -n BOOT_EMMC /dev/mmcblk1p1
mkfs.fat 4.1 (2017-01-24)
+ echo done.
done.
+ mount -o rw /dev/mmcblk1p1 /ddbr/install
+ echo -n Copying BOOT...
Copying BOOT...+ cp -r /tmp/alpine/boot/System.map-amlogic /tmp/alpine/boot/config-amlogic /tmp/alpine/boot/dtbs /tmp/alpine/boot/initramfs-amlogic /tmp/alpine/boot/s905_autoscript /tmp/alpine/boot/uEnv.ini /tmp/alpine/boot/uInitrd /tmp/alpine/boot/vmlinuz-amlogic /ddbr/install
+ sync
+ echo done.
done.
+ echo -n Create new init config...
Create new init config...+ cat
+ cat
+ mkimage -C none -A arm -T script -d /ddbr/install/emmc_autoscript.cmd /ddbr/install/emmc_autoscript
Image Name:
Created: Fri Jun 7 20:51:26 2019
Image Type: ARM Linux Script (uncompressed)
Data Size: 466 Bytes = 0.46 KiB = 0.00 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 458 Bytes = 0.45 KiB = 0.00 MiB
+ echo done.
done.
+ rm /ddbr/install/s905_autoscript
+ umount /ddbr/install
+ grep -q /dev/mmcblk1p2 /proc/mounts
+ echo Formatting ROOT partition...
Formatting ROOT partition...
+ mke2fs -F -q -O ^64bit -t ext4 -L ROOT_EMMC -m 0 /dev/mmcblk1p2
+ e2fsck -n /dev/mmcblk1p2
e2fsck 1.44.1 (24-Mar-2018)
ROOT_EMMC: clean, 11/427392 files, 46970/1706240 blocks
+ echo done.
done.
+ echo Copying ROOTFS.
Copying ROOTFS.
+ mount -o rw /dev/mmcblk1p2 /ddbr/install
+ cd /tmp/alpine
+ echo Copy BIN
Copy BIN
+ cd /ddbr/install
+ tar -xpf -
+ tar -cf - bin
+ echo Create DEV
Create DEV
+ mkdir -p /ddbr/install/dev
+ echo Copy ETC
Copy ETC
+ tar -cf - etc
+ cd /ddbr/install
+ tar -xpf -
+ echo Copy HOME
Copy HOME
+ + cd /ddbr/install
tar -cf - home
+ tar -xpf -
+ echo Copy LIB
Copy LIB
+ + tar -cf - lib
cd /ddbr/install
+ tar -xpf -
+ echo Create MEDIA
Create MEDIA
+ mkdir -p /ddbr/install/media
+ echo Create MNT
Create MNT
+ mkdir -p /ddbr/install/mnt
+ echo Copy OPT
Copy OPT
+ + cd /ddbr/install
tar -cf - opt
+ tar -xpf -
+ echo Create PROC
Create PROC
+ mkdir -p /ddbr/install/proc
+ echo Copy ROOT
Copy ROOT
+ + cd /ddbr/install
+ tar -xpf -
tar -cf - root
+ echo Create RUN
Create RUN
+ mkdir -p /ddbr/install/run
+ echo Copy SBIN
Copy SBIN
+ + cdtar /ddbr/install -cf
- sbin
+ tar -xpf -
+ echo Copy SRV
Copy SRV
+ + tar -cf - srv
cd /ddbr/install
+ tar -xpf -
+ echo Create SYS
Create SYS
+ mkdir -p /ddbr/install/sys
+ echo Create TMP
Create TMP
+ mkdir -p /ddbr/install/tmp
+ echo Copy USR
Copy USR
+ tar -cf - usr
+ cd /ddbr/install
+ tar -xpf -
+ echo Copy VAR
Copy VAR
+ + tar -cf - var
cd /ddbr/install
+ tar -xpf -
+ cat
+ chmod +x /usr/bin/resize2fs-once
chmod: cannot access '/usr/bin/resize2fs-once': No such file or directory
+ echo Create new fstab
Create new fstab
+ cat
+ cd /
+ sync
+ umount /ddbr/install
+ umount -l /tmp/alpine/boot
+ umount -l /tmp/alpine
+ losetup -d /dev/loop0
+ echo *******************************************
*******************************************
+ echo Complete copy OS to eMMC
Complete copy OS to eMMC
+ echo *******************************************
*******************************************
gxl_p230_v1#fatls mmc 1
3454210 system.map-amlogic
139003 config-amlogic
dtbs/
3371650 initramfs-amlogic
218 uenv.ini
3371714 uinitrd
17326592 vmlinuz-amlogic
458 emmc_autoscript.cmd
530 emmc_autoscript
8 file(s), 1 dir(s)
gxl_p230_v1#fatload mmc 1 1020000 emmc_autoscript
reading emmc_autoscript
530 bytes read in 4 ms (128.9 KiB/s)
gxl_p230_v1#autoscr 1020000
## Executing script at 01020000
reading vmlinuz-amlogic
17326592 bytes read in 520 ms (31.8 MiB/s)
reading uInitrd
3371714 bytes read in 103 ms (31.2 MiB/s)
reading uEnv.ini
218 bytes read in 3 ms (70.3 KiB/s)
reading /dtbs/meson-gxl-s905d-phicomm-n1.dtb
25986 bytes read in 7 ms (3.5 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: 3371650 Bytes = 3.2 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
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
Loading Ramdisk to 73b90000, end 73ec7282 ... OK
Loading Device Tree to 000000001fff6000, end 000000001ffff581 ... OK
fdt_instaboot: no instaboot image
Starting kernel ...
uboot time: 1245846060 us
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.18.14-2-amlogic (packager@6c0cba3d7b0b) (gcc version 8.2.0 (Alpine 8.2.0)) #3-Alpine SMP PREEMPT Thu Nov 8 10:26:15 UTC 2018
[ 0.000000] Machine model: Phicomm N1
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000067c00000, size 188 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x3f4 with crng_init=0
[ 0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s56280 r8192 d29736 u94208
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 478528
[ 0.000000] Kernel command line: root=/dev/mmcblk1p2 rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 1694360K/1944576K available (9788K kernel code, 920K rwdata, 5564K rodata, 576K init, 1009K bss, 57704K reserved, 192512K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 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] GIC: Using split EOI/Deactivate mode
[ 0.000000] irq_meson_gpio: 110 to 8 gpio interrupt mux initialized
[ 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: 440795202592 ns
[ 0.000003] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000335] Console: colour dummy device 80x25
[ 0.000609] console [tty0] enabled
[ 0.000630] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000650] pid_max: default: 32768 minimum: 301
[ 0.000745] Security Framework initialized
[ 0.000801] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000822] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.024013] ASID allocator initialised with 32768 entries
[ 0.031999] Hierarchical SRCU implementation.
[ 0.041349] EFI services will not be available.
[ 0.048044] smp: Bringing up secondary CPUs ...
[ 0.080246] Detected VIPT I-cache on CPU1
[ 0.080288] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.112280] Detected VIPT I-cache on CPU2
[ 0.112315] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.144323] Detected VIPT I-cache on CPU3
[ 0.144354] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.144414] smp: Brought up 1 node, 4 CPUs
[ 0.144476] SMP: Total of 4 processors activated.
[ 0.144488] CPU features: detected: 32-bit EL0 Support
[ 0.147898] CPU: All CPU(s) started at EL2
[ 0.147920] alternatives: patching kernel code
[ 0.148653] devtmpfs: initialized
[ 0.152876] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.152908] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.157415] pinctrl core: initialized pinctrl subsystem
[ 0.158279] DMI not present or invalid.
[ 0.158565] NET: Registered protocol family 16
[ 0.158969] audit: initializing netlink subsys (disabled)
[ 0.159095] audit: type=2000 audit(0.156:1): state=initialized audit_enabled=0 res=1
[ 0.160466] cpuidle: using governor menu
[ 0.160729] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[ 0.160752] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.161614] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.161736] Serial: AMBA PL011 UART driver
[ 0.177419] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.177769] cryptd: max_cpu_qlen set to 1000
[ 0.179622] SCSI subsystem initialized
[ 0.179933] usbcore: registered new interface driver usbfs
[ 0.179993] usbcore: registered new interface driver hub
[ 0.180082] usbcore: registered new device driver usb
[ 0.180367] media: Linux media interface: v0.10
[ 0.180561] videodev: Linux video capture interface: v2.00
[ 0.180668] pps_core: LinuxPPS API ver. 1 registered
[ 0.180684] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.180718] PTP clock support registered
[ 0.181014] Advanced Linux Sound Architecture Driver Initialized.
[ 0.181767] clocksource: Switched to clocksource arch_sys_counter
[ 0.181933] VFS: Disk quotas dquot_6.6.0
[ 0.181983] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.182073] FS-Cache: Loaded
[ 0.182264] CacheFiles: Loaded
[ 0.187755] NET: Registered protocol family 2
[ 0.188175] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)
[ 0.188217] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.188330] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.188548] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.188660] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.188711] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.188858] NET: Registered protocol family 1
[ 0.189194] RPC: Registered named UNIX socket transport module.
[ 0.189210] RPC: Registered udp transport module.
[ 0.189219] RPC: Registered tcp transport module.
[ 0.189228] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.189378] Unpacking initramfs...
[ 0.317926] Freeing initrd memory: 3292K
[ 0.318574] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.318866] kvm [1]: 8-bit VMID
[ 0.319856] kvm [1]: vgic interrupt IRQ1
[ 0.319953] kvm [1]: Hyp mode initialized successfully
[ 0.323639] Initialise system trusted keyrings
[ 0.323780] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.330347] NFS: Registering the id_resolver key type
[ 0.330383] Key type id_resolver registered
[ 0.330392] Key type id_legacy registered
[ 0.330407] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.330668] JFS: nTxBlock = 8192, nTxLock = 65536
[ 0.335106] pstore: using deflate compression
[ 0.337442] Key type asymmetric registered
[ 0.337463] Asymmetric key parser 'x509' registered
[ 0.337653] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.337825] io scheduler noop registered (default)
[ 0.337990] io scheduler cfq registered
[ 0.347533] (NULL device *): Failed to create dummy-system-controller@0 debugfs directory
[ 0.347839] soc soc0: Amlogic Meson GXL (S905D) Revision 21:d (4:2) Detected
[ 0.351284] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.353014] c11084c0.serial: ttyAML1 at MMIO 0xc11084c0 (irq = 10, base_baud = 1500000) is a meson_uart
[ 0.353174] serial serial0: tty port ttyAML1 registered
[ 0.353400] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 13, base_baud = 1500000) is a meson_uart
[ 1.047524] console [ttyAML0] enabled
[ 1.056662] loop: module loaded
[ 1.058021] libphy: Fixed MDIO Bus: probed
[ 1.058696] tun: Universal TUN/TAP device driver, 1.6
[ 1.064859] meson8b-dwmac c9410000.ethernet: PTP uses main clock
[ 1.069256] meson8b-dwmac c9410000.ethernet: no reset control found
[ 1.075765] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[ 1.082522] meson8b-dwmac c9410000.ethernet: DWMAC1000
[ 1.087693] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported
[ 1.095108] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported
[ 1.102528] meson8b-dwmac c9410000.ethernet: COE Type 2
[ 1.107698] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported
[ 1.114687] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported
[ 1.121099] meson8b-dwmac c9410000.ethernet: Normal descriptors
[ 1.126937] meson8b-dwmac c9410000.ethernet: Ring mode enabled
[ 1.132713] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.177772] libphy: stmmac: probed
[ 2.179054] dwc3 c9000000.dwc3: Failed to get clk 'ref': -2
[ 2.182315] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.187583] ehci-platform: EHCI generic platform driver
[ 2.192900] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.198869] ohci-platform: OHCI generic platform driver
[ 2.204578] usbcore: registered new interface driver usb-storage
[ 2.211240] mousedev: PS/2 mouse device common for all mice
[ 2.216230] i2c /dev entries driver
[ 2.219871] Requesting IRQ 34
[ 2.223213] sdhci: Secure Digital Host Controller Interface driver
[ 2.228010] sdhci: Copyright(c) Pierre Ossman
[ 2.232346] Synopsys Designware Multimedia Card Interface Driver
[ 2.239559] meson-gx-mmc d0072000.mmc: Got CD GPIO
[ 2.269896] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[ 2.296931] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.297623] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.303516] meson-sm: secure-monitor enabled
[ 2.308108] usbcore: registered new interface driver usbhid
[ 2.312710] usbhid: USB HID core driver
[ 2.316795] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[BL31]: tee size: 0
[ 2.327423] meson-audio-core c1105400.audio: Failed to create c1105400.audio debugfs directory
[ 2.336962] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 2.339665] Initializing XFRM netlink socket
[ 2.343817] NET: Registered protocol family 10
[ 2.348585] Segment Routing with IPv6
[ 2.352026] NET: Registered protocol family 17
[ 2.355777] l2tp_core: L2TP core driver, V2.0
[ 2.360051] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 2.365576] l2tp_netlink: L2TP netlink interface
[ 2.370142] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 2.375997] l2tp_debugfs: L2TP debugfs support
[ 2.378341] mmc1: new HS200 MMC card at address 0001
[ 2.380373] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 2.385914] mmcblk1: mmc1:0001 NCard 7.28 GiB
[ 2.391725] 9pnet: Installing 9P2000 support
[ 2.396454] mmcblk1boot0: mmc1:0001 NCard partition 1 4.00 MiB
[ 2.400463] Key type dns_resolver registered
[ 2.406580] mmcblk1boot1: mmc1:0001 NCard partition 2 4.00 MiB
[ 2.411241] registered taskstats version 1
[ 2.416482] mmcblk1rpmb: mmc1:0001 NCard partition 3 4.00 MiB, chardev (242:0)
[ 2.420394] Loading compiled-in X.509 certificates
[ 2.429201] mmcblk1: p1 p2
[ 2.432456] Unable to create integrity sysfs dir: -19
[ 2.447695] meson-drm d0100000.vpu: Queued 2 outputs on vpu
[ 2.448088] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.454212] [drm] No driver support for vblank timestamp query.
[ 2.460158] meson-drm d0100000.vpu: CVBS Output connector not available
[ 2.493813] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[ 2.498382] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[ 2.506314] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops meson_dw_hdmi_ops)
[ 2.513347] [drm] Cannot find any crtc or sizes
[ 2.518105] [drm] Initialized meson 1.0.0 20161109 for d0100000.vpu on minor 0
[ 2.525246] libphy: mdio_mux: probed
[ 2.528840] libphy: mdio_mux: probed
[ 2.534590] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.537415] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 2.545567] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f664 hci version 0x100 quirks 0x0000000002010010
[ 2.554363] xhci-hcd xhci-hcd.0.auto: irq 37, io mem 0xc9000000
[ 2.560806] hub 1-0:1.0: USB hub found
[ 2.563922] hub 1-0:1.0: 2 ports detected
[ 2.568131] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.573299] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 2.580886] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 2.587481] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.595912] hub 2-0:1.0: USB hub found
[ 2.599202] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 2.607801] scpi_protocol scpi: SCP Protocol legacy pre-1.0 firmware
domain-0 init dvfs: 4
[ 2.623867] asoc-simple-card sound: i2s-hifi <-> meson-i2s-dai.1.auto mapping ok
[ 2.625636] asoc-simple-card sound: ASoC: no DMI vendor name!
[ 2.633069] hctosys: unable to open rtc device (rtc0)
[ 2.636519] VDDAO_3V3: disabling
[ 2.639527] ALSA device list:
[ 2.642475] #0: meson-gx-audio
[ 2.646036] Freeing unused kernel memory: 576K
[ 2.901812] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 2.951925] random: fast init done
[ 3.098090] EXT4-fs (mmcblk1p2): mounted filesystem with writeback data mode. Opts: data=writeback
[ 3.521859] [drm] Cannot find any crtc or sizes
Terminating...
Skipping tty reset...
Thanks for using picocom