查看: 3016|回复: 2

[求助] imx6ull烧写成功,无法启动

[复制链接]

该用户从未签到

7

主题

26

帖子

0

注册会员

Rank: 2

积分
130
最后登录
2021-6-30
发表于 2021-6-9 17:38:54 | 显示全部楼层 |阅读模式
通过uuu烧写imx6ull,烧写过程中的提示出下:


  1. U-Boot 2020.04-00031-ge42dee801e-dirty (May 19 2021 - 08:57:26 +0800)

  2. CPU:   i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
  3. CPU:   Industrial temperature grade (-40C to 105C) at 50C
  4. Reset cause: POR
  5. Board: MX6ULL 14x14 EVK
  6. DRAM:  512 MiB
  7. MMC:   FSL_SDHC: 1
  8. Loading Environment from MMC... OK
  9. In:    serial
  10. Out:   serial
  11. Err:   serial
  12. switch to partitions #0, OK
  13. mmc1(part 0) is current device
  14. flash target is MMC:1
  15. Net:
  16. Error: ethernet@20b4000 address not set.

  17. Error: ethernet@20b4000 address not set.

  18. Error: ethernet@20b4000 address not set.
  19. FEC: can't find phy-handle

  20. Error: ethernet@20b4000 address not set.
  21. Could not get PHY for FEC0: addr 2

  22. Error: ethernet@20b4000 address not set.
  23. FEC: can't find phy-handle

  24. Error: ethernet@20b4000 address not set.
  25. Could not get PHY for FEC0: addr 2
  26. No ethernet found.

  27. Fastboot: Normal
  28. Boot from USB for mfgtools
  29. *** Warning - Use default environment for                                mfgtools
  30. , using default environment

  31. Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
  32. Hit any key to stop autoboot:  0

  33. ## Checking Image at 86800000 ...
  34. Unknown image format!
  35. Run fastboot ...
  36. Starting download of 470016 bytes
  37. ...
  38. downloading of 470016 bytes finished
  39. writing to partition 'bootloader'
  40. Initializing 'bootloader'
  41. switch to partitions #1, OK
  42. mmc1(part 1) is current device
  43. Writing 'bootloader'

  44. MMC write: dev # 1, block # 2, count 918 ... 918 blocks written: OK
  45. Writing 'bootloader' DONE!
  46. Starting download of 9824760 bytes
  47. ..........................................................................

  48. downloading of 9824760 bytes finished
  49. Starting download of 25521 bytes

  50. downloading of 25521 bytes finished
  51. Starting download of 14918449 bytes
  52. ..........................................................................
  53. .......................................
  54. downloading of 14918449 bytes finished
  55. Kernel image @ 0x80800000 [ 0x000000 - 0x95e9f8 ]
  56. ## Loading init Ramdisk from Legacy Image at 86800000 ...
  57.    Image Name:   fsl-image-mfgtool-initramfs-imx6
  58.    Image Type:   ARM Linux RAMDisk Image (uncompressed)
  59.    Data Size:    14918385 Bytes = 14.2 MiB
  60.    Load Address: 00000000
  61.    Entry Point:  00000000
  62.    Verifying Checksum ... OK
  63. ## Flattened Device Tree blob at 83000000
  64.    Booting using the fdt blob at 0x83000000
  65.    Using Device Tree in place at 83000000, end 830093b0
  66. ft_system_setup for mx6

  67. Starting kernel ...

  68. [    0.000000] Booting Linux on physical CPU 0x0
  69. [    0.000000] Linux version 5.10.36 (ics@imx-host) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 20201103, GNU ld (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 2.35.1.20201028) #1 SMP Thu May 20 16:30:38 CST 2021
  70. [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
  71. [    0.000000] CPU: div instructions available: patching division code
  72. [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  73. [    0.000000] OF: fdt: Machine model: Freescale i.MX6 UltraLiteLite 14x14 EVK Board....CHANBY....
  74. [    0.000000] Memory policy: Data cache writealloc
  75. [    0.000000] cma: Reserved 64 MiB at 0x9c000000
  76. [    0.000000] Zone ranges:
  77. [    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fffffff]
  78. [    0.000000]   HighMem  empty
  79. [    0.000000] Movable zone start for each node
  80. [    0.000000] Early memory node ranges
  81. [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fffffff]
  82. [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff]
  83. [    0.000000] percpu: Embedded 20 pages/cpu s51692 r8192 d22036 u81920
  84. [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
  85. [    0.000000] Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc clk_ignore_unused
  86. [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
  87. [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
  88. [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
  89. [    0.000000] Memory: 411320K/524288K available (13312K kernel code, 1909K rwdata, 4620K rodata, 1024K init, 6665K bss, 47432K reserved, 65536K cma-reserved, 0K highmem)
  90. [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  91. [    0.000000] Running RCU self tests
  92. [    0.000000] rcu: Hierarchical RCU implementation.
  93. [    0.000000] rcu:     RCU event tracing is enabled.
  94. [    0.000000] rcu:     RCU lockdep checking is enabled.
  95. [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
  96. [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
  97. [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
  98. [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
  99. [    0.000000] random: get_random_bytes called from start_kernel+0x34c/0x56c with crng_init=0
  100. [    0.000000] Switching to timer-based delay loop, resolution 41ns
  101. [    0.000022] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
  102. [    0.000101] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
  103. [    0.003775] Console: colour dummy device 80x30
  104. [    0.003923] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
  105. [    0.003986] ... MAX_LOCKDEP_SUBCLASSES:  8
  106. [    0.004044] ... MAX_LOCK_DEPTH:          48
  107. [    0.004099] ... MAX_LOCKDEP_KEYS:        8192
  108. [    0.004153] ... CLASSHASH_SIZE:          4096
  109. [    0.004206] ... MAX_LOCKDEP_ENTRIES:     32768
  110. [    0.004261] ... MAX_LOCKDEP_CHAINS:      65536
  111. [    0.004313] ... CHAINHASH_SIZE:          32768
  112. [    0.004366]  memory used by lock dependency info: 4061 kB
  113. [    0.004421]  memory used for stack traces: 2112 kB
  114. [    0.004475]  per task-struct memory footprint: 1536 bytes
  115. [    0.004772] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
  116. [    0.004895] pid_max: default: 32768 minimum: 301
  117. [    0.005924] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
  118. [    0.006023] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
  119. [    0.016187] CPU: Testing write buffer coherency: ok
  120. [    0.018947] CPU0: update cpu_capacity 1024
  121. [    0.019056] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  122. [    0.027244] Setting up static identity map for 0x80100000 - 0x80100078
  123. [    0.029306] rcu: Hierarchical SRCU implementation.
  124. [    0.035599] smp: Bringing up secondary CPUs ...
  125. [    0.035715] smp: Brought up 1 node, 1 CPU
  126. [    0.035808] SMP: Total of 1 processors activated (48.00 BogoMIPS).
  127. [    0.035886] CPU: All CPU(s) started in SVC mode.
  128. [    0.042732] devtmpfs: initialized
  129. [    0.115681] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
  130. [    0.118875] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  131. [    0.119095] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
  132. [    0.125544] pinctrl core: initialized pinctrl subsystem
  133. [    0.141770] NET: Registered protocol family 16
  134. [    0.232116] DMA: preallocated 256 KiB pool for atomic coherent allocations
  135. [    0.250398] thermal_sys: Registered thermal governor 'step_wise'
  136. [    0.250963] cpuidle: using governor menu
  137. [    0.432247] vdd3p0: supplied by regulator-dummy
  138. [    0.450413] cpu: supplied by regulator-dummy
  139. [    0.467873] vddsoc: supplied by regulator-dummy
  140. [    0.775170] No ATAGs?
  141. [    0.776344] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
  142. [    0.776611] hw-breakpoint: maximum watchpoint size is 8 bytes.
  143. [    0.788743] debugfs: Directory 'dummy-iomuxc-gpr@20e4000' with parent 'regmap' already present!
  144. [    0.791997] imx6ul-pinctrl 20e0000.pinctrl: initialized IMX pinctrl driver
  145. [    0.795521] imx6ul-pinctrl 2290000.iomuxc-snvs: no groups defined in /soc/bus@2200000/iomuxc-snvs@2290000
  146. [    0.795888] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
  147. [    0.927312] Kprobes globally optimized
  148. [    1.119772] mxs-dma 1804000.dma-apbh: initialized
  149. [    1.131804] vgaarb: loaded
  150. [    1.138633] SCSI subsystem initialized
  151. [    1.145961] usbcore: registered new interface driver usbfs
  152. [    1.146868] usbcore: registered new interface driver hub
  153. [    1.147394] usbcore: registered new device driver usb
  154. [    1.160685] i2c i2c-0: IMX I2C adapter registered
  155. [    1.163946] mc: Linux media interface: v0.10
  156. [    1.164443] videodev: Linux video capture interface: v2.00
  157. [    1.166265] pps_core: LinuxPPS API ver. 1 registered
  158. [    1.166376] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  159. [    1.166617] PTP clock support registered
  160. [    1.171898] Advanced Linux Sound Architecture Driver Initialized.
  161. [    1.182976] Bluetooth: Core ver 2.22
  162. [    1.183712] NET: Registered protocol family 31
  163. [    1.183809] Bluetooth: HCI device and connection manager initialized
  164. [    1.184205] Bluetooth: HCI socket layer initialized
  165. [    1.184365] Bluetooth: L2CAP socket layer initialized
  166. [    1.184888] Bluetooth: SCO socket layer initialized
  167. [    1.191690] clocksource: Switched to clocksource mxc_timer1
  168. [    2.581791] random: fast init done
  169. [    4.407060] VFS: Disk quotas dquot_6.6.0
  170. [    4.407629] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  171. [    4.521750] NET: Registered protocol family 2
  172. [    4.529462] tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 11264 bytes, linear)
  173. [    4.529734] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
  174. [    4.530022] TCP bind hash table entries: 4096 (order: 5, 163840 bytes, linear)
  175. [    4.531700] TCP: Hash tables configured (established 4096 bind 4096)
  176. [    4.533008] UDP hash table entries: 256 (order: 2, 24576 bytes, linear)
  177. [    4.533378] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes, linear)
  178. [    4.534890] NET: Registered protocol family 1
  179. [    4.544046] RPC: Registered named UNIX socket transport module.
  180. [    4.544368] RPC: Registered udp transport module.
  181. [    4.544466] RPC: Registered tcp transport module.
  182. [    4.544557] RPC: Registered tcp NFSv4.1 backchannel transport module.
  183. [    4.544664] PCI: CLS 0 bytes, default 64
  184. [    4.549331] Trying to unpack rootfs image as initramfs...
  185. [    8.658568] Freeing initrd memory: 14572K
  186. [    8.663498] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
  187. [    8.682329] workingset: timestamp_bits=30 max_order=17 bucket_order=0
  188. [    8.767000] NFS: Registering the id_resolver key type
  189. [    8.767991] Key type id_resolver registered
  190. [    8.768298] Key type id_legacy registered
  191. [    8.769568] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
  192. [    8.769896] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
  193. [    8.770457] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
  194. [    8.777305] fuse: init (API version 7.32)
  195. [    9.020475] io scheduler mq-deadline registered
  196. [    9.020607] io scheduler kyber registered
  197. [    9.066053] 2018000.serial: ttymxc6 at MMIO 0x2018000 (irq = 28, base_baud = 5000000) is a IMX
  198. [    9.078890] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 29, base_baud = 5000000) is a IMX
  199. [    9.874680] printk: console [ttymxc0] enabled
  200. [    9.889537] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 62, base_baud = 5000000) is a IMX
  201. [    9.908062] 2288000.serial: ttymxc7 at MMIO 0x2288000 (irq = 67, base_baud = 5000000) is a IMX
  202. [    9.966244] imx_rngc 2284000.rng: Freescale RNGB registered (HW revision 2.129)
  203. [    9.975706] random: crng init done
  204. [   10.148718] brd: module loaded
  205. [   10.269519] loop: module loaded
  206. [   10.304811] libphy: Fixed MDIO Bus: probed
  207. [   10.315200] CAN device driver interface
  208. [   10.330990] pps pps0: new PPS source ptp0
  209. [   10.340636] fec 20b4000.ethernet: Invalid MAC
  210.                                                 run shell cmd: mmc=`cat /tmp/mmcdev`; mkfs.ext4 -F -E nodiscard /dev/mmcblk${mmc}p2
  211. mke2fs 1.45.3 (14-Jul-2019)
  212. run shell cmd: mkdir -p /mnt/ext4
  213. run shell cmd: mmc=`cat /tmp/mmcdev`; mount /dev/mmcblk${mmc}p2 /mnt/ext4
  214. [   25.331114] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
  215. run shell cmd: export EXTRACT_UNSAFE_SYMLINKS=1; tar -jx -C /mnt/ext4
  216. WOpen:-
  217. [   43.393249] vdd3p0: disabling
  218. wait for async proccess finish
  219. run shell cmd: umount /mnt/ext4

复制代码
烧写完毕,将启动模式拨码至InternalMode,即BOOT_MODE[1:0]=10,上电,无任何反应。
重新通过下载模式进入uboot,查看SRC_SBMR1(0x020d8004)寄存器值为0x00000872,打印uboot环境变量如下:

  1. => printenv
  2. baudrate=115200
  3. boot_fdt=try
  4. bootargs=console=ttymxc0,115200 rdinit=/linuxrc clk_ignore_unused
  5. bootcmd=run findfdt;run findtee;mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi
  6. bootcmd_mfg=run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
  7. bootdelay=3
  8. bootscript=echo Running bootscript from mmc ...; source
  9. console=ttymxc0
  10. emmc_ack=1
  11. emmc_dev=1
  12. ethprime=eth1
  13. fdt_addr=0x83000000
  14. fdt_file=undefined
  15. fdt_high=0xffffffff
  16. findfdt=if test $fdt_file = undefined; then if test $board_name = ULZ-EVK && test $board_rev = 14X14; then setenv fdt_file imx6ulz-14x14-evk.dtb; fi; if test $board_name = EVK && test $board_rev = 9X9; then setenv fdt_file imx6ull-9x9-evk.dtb; fi; if test $board_name = EVK && test $board_rev = 14X14; then setenv fdt_file imx6ull-14x14-evk.dtb; fi; if test $fdt_file = undefined; then echo WARNING: Could not determine dtb to use; fi; fi;
  17. findtee=if test $tee_file = undefined; then if test $board_name = ULZ-EVK && test $board_rev = 14X14; then setenv tee_file uTee-6ulzevk; fi; if test $board_name = EVK && test $board_rev = 9X9; then setenv tee_file uTee-6ullevk; fi; if test $board_name = EVK && test $board_rev = 14X14; then setenv tee_file uTee-6ullevk; fi; if test $tee_file = undefined; then echo WARNING: Could not determine tee to use; fi; fi;
  18. image=zImage
  19. initrd_addr=0x86800000
  20. initrd_high=0xffffffff
  21. ip_dyn=yes
  22. kboot=bootz
  23. loadaddr=0x80800000
  24. loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
  25. loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
  26. loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
  27. loadtee=fatload mmc ${mmcdev}:${mmcpart} ${tee_addr} ${tee_file}
  28. mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc clk_ignore_unused
  29. mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
  30. mmcautodetect=yes
  31. mmcboot=echo Booting from mmc ...; run mmcargs; if test ${tee} = yes; then run loadfdt; run loadtee; bootm ${tee_addr} - ${fdt_addr}; else if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi; fi;
  32. mmcdev=1
  33. mmcpart=1
  34. mmcroot=/dev/mmcblk1p2 rootwait rw
  35. netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
  36. netboot=echo Booting from net ...; ${usb_net_cmd}; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${tee} = yes; then ${get_cmd} ${tee_addr} ${tee_file}; ${get_cmd} ${fdt_addr} ${fdt_file}; bootm ${tee_addr} - ${fdt_addr}; else if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi; fi;
  37. script=boot.scr
  38. sd_dev=1
  39. splashimage=0x8c000000
  40. tee=no
  41. tee_addr=0x84000000
  42. tee_file=undefined

  43. Environment size: 3305/8188 bytes
  44. =>
复制代码
请版主及大咖们帮忙分析一下看,是什么问题?
我知道答案 目前已有2人回答
回复

使用道具 举报

该用户从未签到

7

主题

26

帖子

0

注册会员

Rank: 2

积分
130
最后登录
2021-6-30
 楼主| 发表于 2021-6-9 17:46:12 | 显示全部楼层
下面是uuu烧写脚本:
  1. uuu_version 1.2.39

  2. # Please Replace below items with actually file names
  3. # @uboot.bin                        | boot loader
  4. # @kernel                        | kernel image, arm64 is Image, arm32 it is zImage
  5. # @crl_601.dtb                        | board dtb file
  6. # @initramfs.cpio.gz.uboot        | mfgtool init ramfs
  7. # @rootfs.tar.bz2                | rootfs
  8. # @_uTee.tar                        | optee image, put dummy _uTee.tar file here if platform is not MX6/MX7*

  9. # This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
  10. SDP: boot -f uboot.bin

  11. # This command will be run when ROM support stream mode
  12. # i.MX8QXP, i.MX8QM
  13. SDPS: boot -f uboot.bin

  14. # These commands will be run when use SPL and will be skipped if no spl
  15. # SDPU will be deprecated. please use SDPV instead of SDPU
  16. # {
  17. SDPU: delay 1000
  18. SDPU: write -f uboot.bin -offset 0x57c00
  19. SDPU: jump
  20. # }

  21. # These commands will be run when use SPL and will be skipped if no spl
  22. # if (SPL support SDPV)
  23. # {
  24. SDPV: delay 1000
  25. SDPV: write -f uboot.bin -skipspl
  26. SDPV: jump
  27. # }

  28. # use uboot burn bootloader to eMMC
  29. # becaue difference chip, offset is difference
  30. # you can use kernel to do that for specific boards
  31. FB: ucmd setenv fastboot_dev mmc
  32. FB: ucmd setenv mmcdev ${emmc_dev}
  33. FB: flash bootloader uboot.bin

  34. FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;

  35. FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
  36. FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi
  37. FB: ucmd setenv emmc_cmd mmc bootbus ${emmc_dev} 2 2 1;
  38. FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi

  39. FB: ucmd setenv fastboot_buffer ${loadaddr}
  40. FB: download -f kernel
  41. FB: ucmd setenv fastboot_buffer ${fdt_addr}
  42. FB: download -f crl_601.dtb
  43. FB: ucmd setenv fastboot_buffer ${initrd_addr}
  44. FB: download -f initramfs.cpio.gz.uboot
  45. #FB: ucmd setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate}

  46. FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}

  47. # get mmc dev number from kernel command line
  48. # Wait for emmc
  49. FBK: ucmd while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait for /dev/mmcblk*boot* appear"; done;

  50. # serach emmc device number, if your platform have more than two emmc chip, please echo dev number >/tmp/mmcdev
  51. FBK: ucmd dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=${dev#/dev/mmcblk}; dev=${dev%boot*}; echo $dev > /tmp/mmcdev;

  52. # dd to clear the possible MBR
  53. FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=512 count=1
  54. # create partition
  55. FBK: ucmd mmc=`cat /tmp/mmcdev`; PARTSTR=10M,500M,0c\n600M,,83\n'; echo "$PARTSTR" | sfdisk --force /dev/mmcblk${mmc}

  56. FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=1k seek=4096 count=1
  57. FBK: ucmd sync

  58. # you can enable below command to write boot partition. but offset is difference at difference platform
  59. FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 0 > /sys/block/mmcblk${mmc}boot0/force_ro
  60. FBK: ucp  uboot.bin t:/tmp
  61. FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/tmp/uboot.bin of=/dev/mmc${mmc}boot0 bs=1K seek=768
  62. FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 1 > /sys/block/mmcblk${mmc}boot0/force_ro

  63. FBK: ucmd mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; do sleep 1; done
  64. FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1
  65. FBK: ucmd mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fat
  66. FBK: ucmd mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /mnt/fat
  67. FBK: ucp  kernel t:/mnt/fat
  68. FBK: ucp  crl_601.dtb t:/mnt/fat
  69. # FBK: ucp  _uTee.tar t:/tmp/op.tar
  70. # FBK: ucmd tar -xf /tmp/op.tar -C /mnt/fat
  71. FBK: ucmd umount /mnt/fat

  72. FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.ext4 -F -E nodiscard /dev/mmcblk${mmc}p2
  73. FBK: ucmd mkdir -p /mnt/ext4
  74. FBK: ucmd mmc=`cat /tmp/mmcdev`; mount /dev/mmcblk${mmc}p2 /mnt/ext4
  75. FBK: acmd export EXTRACT_UNSAFE_SYMLINKS=1; tar -jx -C /mnt/ext4
  76. FBK: ucp  rootfs.tar.bz2 t:-
  77. FBK: Sync
  78. FBK: ucmd umount /mnt/ext4

  79. FBK: DONE
复制代码
回复 支持 反对

使用道具 举报

该用户从未签到

656

主题

6312

帖子

0

超级版主

Rank: 8Rank: 8

积分
19992
最后登录
2024-4-23
发表于 2021-7-15 10:57:39 | 显示全部楼层
你说的没有任何反应是指最后内核输出任何信息吗?我看内核最后的打印log是和挂载文件系统有关,你应该检查一下你最后的文件系统烧写指令。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /4 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2024-4-24 04:14 , Processed in 0.116734 second(s), 22 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表