OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 6793|回复: 7

SD卡启动系统卡死不动,uboot环境变量如何设置

[复制链接]

11

主题

27

帖子

0

精华

初级会员

Rank: 2

积分
108
金钱
108
注册时间
2020-3-26
在线时间
31 小时
发表于 2021-4-7 17:21:26 | 显示全部楼层 |阅读模式
1金钱
按照《【正点原子】 I.MX6U 用户快速体验.pdf 》2.2.2制作了 SD 卡启动卡,然后设置开发板从sd卡启动,中间卡死不动了,猜测是uboot环境变量没设置的原因,但是不知道sd卡启动的话uboot环境变量要如何设置?
2.png 1.png

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

5

主题

120

帖子

0

精华

高级会员

Rank: 4

积分
813
金钱
813
注册时间
2021-2-26
在线时间
117 小时
发表于 2021-4-7 18:22:02 | 显示全部楼层
把完整的kernel boot log发上来。
修改uboot的env,需要改uboot的代码,可以看我的帖子

http://www.openedv.com/forum.php ... d=324186&extra=
回复

使用道具 举报

11

主题

27

帖子

0

精华

初级会员

Rank: 2

积分
108
金钱
108
注册时间
2020-3-26
在线时间
31 小时
 楼主| 发表于 2021-4-7 20:01:34 | 显示全部楼层
jckimi 发表于 2021-4-7 18:22
把完整的kernel boot log发上来。
修改uboot的env,需要改uboot的代码,可以看我的帖子

内容如下,谢谢了。

U-Boot 2016.03-gd3f0479 (Aug 07 2020 - 20:47:37 +0800)

CPU:   Freescale i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 41C
Reset cause: POR
Board: I.MX6U ALPHA|MINI
I2C:   ready
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Display: ATK-LCD-4.3-480x272 (480x272)
Video: 480x272x24
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc0 is current device
Net:   Board Net Initialization Failed
No ethernet found.
Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
switch to partitions #0, OK
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6788320 bytes read in 374 ms (17.3 MiB/s)
Booting from mmc ...
reading imx6ull-14x14-emmc-4.3-480x272-c.dtb
38859 bytes read in 20 ms (1.9 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x6794e0 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300c7ca

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.1.15-gb78e551 (alientek@ubuntu) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Sun Nov 15 12:58:44 CST 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Freescale i.MX6 ULL 14x14 EVK Board
[    0.000000] Reserved memory: created CMA memory pool at 0x98000000, size 128 MiB
[    0.000000] Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 12 pages/cpu @97b90000 s16780 r8192 d24180 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 375268K/524288K available (8552K kernel code, 450K rwdata, 2964K rodata, 528K init, 452K bss, 17948K reserved, 131072K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xa0800000 - 0xff000000   (1512 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x80b472ec   (11517 kB)
[    0.000000]       .init : 0x80b48000 - 0x80bcc000   ( 528 kB)
[    0.000000]       .data : 0x80bcc000 - 0x80c3ca20   ( 451 kB)
[    0.000000]        .bss : 0x80c3f000 - 0x80cb0004   ( 453 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mxc_clocksource_init 3000000
[    0.000000] Switching to timer-based delay loop, resolution 333ns
[    0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[    0.000000] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[    0.001612] Console: colour dummy device 80x30
[    0.001655] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.001689] pid_max: default: 32768 minimum: 301
[    0.001917] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001949] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003327] CPU: Testing write buffer coherency: ok
[    0.003824] /cpus/cpu@0 missing clock-frequency property
[    0.003866] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003982] Setting up static identity map for 0x80008280 - 0x800082d8
[    0.041083] Brought up 1 CPUs
[    0.041121] SMP: Total of 1 processors activated (6.00 BogoMIPS).
[    0.041141] CPU: All CPU(s) started in SVC mode.
[    0.042254] devtmpfs: initialized
[    0.059254] device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
[    0.065665] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.066571] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.076590] pinctrl core: initialized pinctrl subsystem
[    0.079274] NET: Registered protocol family 16
[    0.097328] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.121017] cpuidle: using governor ladder
[    0.151081] cpuidle: using governor menu
[    0.201739] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.201775] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.206206] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.207027] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[    0.278883] mxs-dma 1804000.dma-apbh: initialized
[    0.286082] SCSI subsystem initialized
[    0.287460] usbcore: registered new interface driver usbfs
[    0.287648] usbcore: registered new interface driver hub
[    0.287866] usbcore: registered new device driver usb
[    0.290567] i2c i2c-0: IMX I2C adapter registered
[    0.290616] i2c i2c-0: can't use DMA
[    0.292664] i2c i2c-1: IMX I2C adapter registered
[    0.292711] i2c i2c-1: can't use DMA
[    0.293042] Linux video capture interface: v2.00
[    0.293247] pps_core: LinuxPPS API ver. 1 registered
[    0.293273] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.293353] PTP clock support registered
[    0.296375] MIPI CSI2 driver module loaded
[    0.297118] Advanced Linux Sound Architecture Driver Initialized.
[    0.299310] Bluetooth: Core ver 2.20
[    0.299442] NET: Registered protocol family 31
[    0.299467] Bluetooth: HCI device and connection manager initialized
[    0.299509] Bluetooth: HCI socket layer initialized
[    0.299543] Bluetooth: L2CAP socket layer initialized
[    0.299628] Bluetooth: SCO socket layer initialized
[    0.302313] Switched to clocksource mxc_timer1
[    0.329449] NET: Registered protocol family 2
[    0.331046] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.331181] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.331339] TCP: Hash tables configured (established 4096 bind 4096)
[    0.331487] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.331549] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.331980] NET: Registered protocol family 1
[    0.332823] RPC: Registered named UNIX socket transport module.
[    0.332858] RPC: Registered udp transport module.
[    0.332878] RPC: Registered tcp transport module.
[    0.332899] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.336364] imx rpmsg driver is registered.
[    0.339220] Bus freq driver module loaded
[    0.341427] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.358557] VFS: Disk quotas dquot_6.6.0
[    0.359060] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.364870] NFS: Registering the id_resolver key type
[    0.364970] Key type id_resolver registered
[    0.364993] Key type id_legacy registered
[    0.365185] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
[    0.367088] fuse init (API version 7.23)
[    0.378434] io scheduler noop registered
[    0.378488] io scheduler deadline registered
[    0.378991] io scheduler cfq registered (default)
[    0.380161] imx-weim 21b8000.weim: Driver registered.
[    0.387121] backlight supply power not found, using dummy regulator
[    0.389620] MIPI DSI driver module loaded
[    0.390140] MIPI DSI driver module loaded
[    0.396441] 21c8000.lcdif supply lcd not found, using dummy regulator
[    0.504268] mxsfb 21c8000.lcdif: failed to find mxc display driver
[    0.509594] Console: switching to colour frame buffer device 60x34
[    0.530312] mxsfb 21c8000.lcdif: initialized
[    0.532645] imx-sdma 20ec000.sdma: no event needs to be remapped
[    0.532857] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    0.540245] imx-sdma 20ec000.sdma: initialized
[    0.542648] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
[    1.231108] console [ttymxc0] enabled
[    1.236805] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 233, base_baud = 5000000) is a IMX
[    1.250088] ap3216c 0-001e: ap3216c init failed
[    1.254793] ap3216c: probe of 0-001e failed with error -1
[    1.294721] imx-rng 2284000.rngb: iMX RNG Registered.
[    1.300536] imx sema4 driver is registered.
[    1.305028] [drm] Initialized drm 1.1.0 20060810
[    1.310945] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[    1.343511] brd: module loaded
[    1.359920] loop: module loaded
[    1.368944] fsl-quadspi 21e0000.qspi: unrecognized JEDEC id bytes: ff, ff, ff
[    1.376322] fsl-quadspi 21e0000.qspi: Freescale QuadSPI probe failed
[    1.389118] spi_imx 2010000.ecspi: probed
[    1.396200] CAN device driver interface
[    1.403333] flexcan 2090000.can: device registered (reg_base=a0a08000, irq=26)
[    1.413087] 20b4000.ethernet supply phy not found, using dummy regulator
[    1.623526] pps pps0: new PPS source ptp0
[    1.629124] fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
[    1.639263] fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: ca:6c:51:06:60:f7
[    1.650638] libphy: fec_enet_mii_bus: probed
[    1.658401] fec 20b4000.ethernet eth0: registered PHC device 0
[    1.666190] 2188000.ethernet supply phy not found, using dummy regulator
[    1.883419] pps pps1: new PPS source ptp1
[    1.888958] fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
[    1.899093] fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 32:ac:89:6a:aa:b3
[    1.911730] fec 2188000.ethernet eth1: registered PHC device 1
[    1.919577] PPP generic driver version 2.4.2
[    1.924552] PPP BSD Compression module registered
[    1.929320] PPP Deflate Compression module registered
[    1.934528] PPP MPPE Compression module registered
[    1.939391] NET: Registered protocol family 24
[    1.944235] usbcore: registered new interface driver asix
[    1.949842] usbcore: registered new interface driver ax88179_178a
[    1.956211] usbcore: registered new interface driver cdc_ether
[    1.962229] usbcore: registered new interface driver net1080
[    1.968131] usbcore: registered new interface driver cdc_subset
[    1.974286] usbcore: registered new interface driver zaurus
[    1.980142] usbcore: registered new interface driver cdc_ncm
[    1.985919] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.992541] ehci-mxc: Freescale On-Chip EHCI Host driver
[    1.998427] usbcore: registered new interface driver usb-storage
[    2.004732] usbcore: registered new interface driver usb_ehset_test
[    2.014014] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[    2.023372] 2184000.usb supply vbus not found, using dummy regulator
[    2.035510] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    2.040477] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    2.062451] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    2.070191] hub 1-0:1.0: USB hub found
[    2.074256] hub 1-0:1.0: 1 port detected
[    2.080160] 2184200.usb supply vbus not found, using dummy regulator
[    2.090609] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    2.095742] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    2.122376] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    2.130116] hub 2-0:1.0: USB hub found
[    2.134177] hub 2-0:1.0: 1 port detected
[    2.140865] mousedev: PS/2 mouse device common for all mice
[    2.148684] input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[    2.163299] <<-GTP-INFO->> GTP driver installing...
[    2.168931] <<-GTP-INFO->> GTP Driver Version: V2.4<2014/11/28>
[    2.175624] <<-GTP-INFO->> GTP I2C Address: 0x14
[    2.180344] 1-0014 supply vdd_ana not found, using dummy regulator
[    2.186771] 1-0014 supply vcc_i2c not found, using dummy regulator
[    2.193185] <<-GTP-INFO->> Guitar reset
[    2.323405] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -5! Process reset.
[    2.331612] <<-GTP-INFO->> Guitar reset
[    2.452383] <<-GTP-ERROR->> GTP i2c test failed time 1.
[    2.457694] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[    2.473435] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -5! Process reset.
[    2.481640] <<-GTP-INFO->> Guitar reset
[    2.602337] <<-GTP-ERROR->> GTP i2c test failed time 2.
[    2.616204] hub 2-1:1.0: USB hub found
[    2.620444] hub 2-1:1.0: 4 ports detected
[    2.625761] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -5! Process reset.
[    2.634895] <<-GTP-INFO->> Guitar reset
[    2.752504] <<-GTP-ERROR->> GTP i2c test failed time 3.
[    2.773481] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -5! Process reset.
[    2.781687] <<-GTP-INFO->> Guitar reset
[    2.902348] <<-GTP-ERROR->> GTP i2c test failed time 4.
[    2.923435] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -5! Process reset.
[    2.931642] <<-GTP-INFO->> Guitar reset
[    3.052345] <<-GTP-ERROR->> GTP i2c test failed time 5.
[    3.072350] <<-GTP-ERROR->> I2C communication ERROR!
[    3.077398] goodix-ts: probe of 1-0014 failed with error -5
[    3.087378] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
[    3.096579] i2c /dev entries driver
[    3.103000] IR NEC protocol handler initialized
[    3.107592] IR RC5(x/sz) protocol handler initialized
[    3.112811] IR RC6 protocol handler initialized
[    3.117389] IR JVC protocol handler initialized
[    3.121958] IR Sony protocol handler initialized
[    3.126666] IR SANYO protocol handler initialized
[    3.131416] IR Sharp protocol handler initialized
[    3.136203] IR MCE Keyboard/mouse protocol handler initialized
[    3.142075] IR XMP protocol handler initialized
[    3.150176] pxp-v4l2 pxp_v4l2: initialized
[    3.158392] imx2-wdt 20bc000.wdog: use WDOG_B to reboot.
[    3.164748] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    3.170998] Bluetooth: HCI UART driver ver 2.3
[    3.175582] Bluetooth: HCI UART protocol H4 registered
[    3.180753] Bluetooth: HCI UART protocol BCSP registered
[    3.186138] Bluetooth: HCI UART protocol ATH3K registered
[    3.191852] usbcore: registered new interface driver bcm203x
[    3.197841] usbcore: registered new interface driver btusb
[    3.203645] usbcore: registered new interface driver ath3k
[    3.210320] sdhci: Secure Digital Host Controller Interface driver
[    3.216636] sdhci: Copyright(c) Pierre Ossman
[    3.221048] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.229346] /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
[    3.236689] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[    3.243116] sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
[    3.294857] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    3.304268] /soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified
[    3.313491] sdhci-esdhc-imx 2194000.usdhc: No vmmc regulator found
[    3.319727] sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found
[    3.373458] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    3.431393] usbcore: registered new interface driver usbhid
[    3.437297] usbhid: USB HID core driver
[    3.449292] wm8960 1-001a: Failed to issue reset
[    3.454555] wm8960: probe of 1-001a failed with error -5
[    3.463693] fsl-asrc 2034000.asrc: driver registered
[    3.479031] imx-wm8960 sound: failed to find codec platform device
[    3.485489] mmc1: MAN_BKOPS_EN bit is not set
[    3.490098] imx-wm8960: probe of sound failed with error -22
[    3.504629] NET: Registered protocol family 26
[    3.509186] mmc1: mmc_select_hs200 failed, error -74
[    3.516466] NET: Registered protocol family 10
[    3.521927] : switch to mmc1 failed
[    3.530588] sit: IPv6 over IPv4 tunneling driver
[    3.536633] mmc1: new MMC card at address 0001
[    3.544014] NET: Registered protocol family 17
[    3.548671] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.561545] mmcblk1: mmc1:0001 PHIODM 7.28 GiB
[    3.566558] mmcblk1boot0: mmc1:0001 PHIODM partition 1 4.00 MiB
[    3.572941] mmcblk1boot1: mmc1:0001 PHIODM partition 2 4.00 MiB
[    3.579196] mmcblk1rpmb: mmc1:0001 PHIODM partition 3 4.00 MiB
[    3.585274] can: controller area network core (rev 20120528 abi 9)
[    3.591691] NET: Registered protocol family 29
[    3.599835] can: raw protocol (rev 20120528)
[    3.604465]  mmcblk1: p1 p2
[    3.607865] can: broadcast manager protocol (rev 20120528 t)
[    3.619372] can: netlink gateway (rev 20130117) max_hops=1
[    3.625830] Bluetooth: RFCOMM TTY layer initialized
[    3.630785] Bluetooth: RFCOMM socket layer initialized
[    3.636263] Bluetooth: RFCOMM ver 1.11
[    3.640098] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.645569] Bluetooth: BNEP filters: protocol multicast
[    3.650850] Bluetooth: BNEP socket layer initialized
[    3.655932] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.661904] Bluetooth: HIDP socket layer initialized
[    3.667184] 8021q: 802.1Q VLAN Support v1.8
[    3.671541] Key type dns_resolver registered
[    3.701157] dhd_module_init in
[    3.705780] input: gpio_keys@0 as /devices/platform/gpio_keys@0/input/input1
[    3.713629] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:14 UTC (14)
[    3.737073] gpio_dvfs: disabling
[    3.740346] VSD_3V3: disabling
[    3.743501] can-3v3: disabling
[    3.746837] ALSA device list:
[    3.749821]   No soundcards found.
[    3.753896] Waiting for root device /dev/mmcblk0p2...
回复

使用道具 举报

5

主题

120

帖子

0

精华

高级会员

Rank: 4

积分
813
金钱
813
注册时间
2021-2-26
在线时间
117 小时
发表于 2021-4-8 10:33:19 | 显示全部楼层
huajiankeji 发表于 2021-4-7 20:01
内容如下,谢谢了。

U-Boot 2016.03-gd3f0479 (Aug 07 2020 - 20:47:37 +0800)

把你的SD卡插到linux pc上,看看rootfs这个分区有没有正确mount起来。
回复

使用道具 举报

11

主题

27

帖子

0

精华

初级会员

Rank: 2

积分
108
金钱
108
注册时间
2020-3-26
在线时间
31 小时
 楼主| 发表于 2021-4-8 14:42:50 | 显示全部楼层
jckimi 发表于 2021-4-8 10:33
把你的SD卡插到linux pc上,看看rootfs这个分区有没有正确mount起来。

很奇怪的问题,上面说的出问题的底板是我自己做的,接口定义都和开发板一样,今天把SD卡和核心板接到开发板上试了一下,能够启动,但是中间卡了一会,提示如下,对比了几次自制底板和开发板的区别,也没发现什么问题。 1.png
回复

使用道具 举报

5

主题

120

帖子

0

精华

高级会员

Rank: 4

积分
813
金钱
813
注册时间
2021-2-26
在线时间
117 小时
发表于 2021-4-8 18:44:27 | 显示全部楼层
huajiankeji 发表于 2021-4-8 14:42
很奇怪的问题,上面说的出问题的底板是我自己做的,接口定义都和开发板一样,今天把SD卡和核心板接到开发 ...

你sd卡的rootfs分区有问题,试试换一张sd卡,rootfs格式化成ext3的,你自己看看。
回复

使用道具 举报

11

主题

27

帖子

0

精华

初级会员

Rank: 2

积分
108
金钱
108
注册时间
2020-3-26
在线时间
31 小时
 楼主| 发表于 2021-4-9 08:59:27 | 显示全部楼层
jckimi 发表于 2021-4-8 18:44
你sd卡的rootfs分区有问题,试试换一张sd卡,rootfs格式化成ext3的,你自己看看。

换了一个卡还是同样的问题。
需要不需要修改下uboot里面的环境变量?就是不知道SD卡启动的需要修改成什么。
回复

使用道具 举报

9

主题

890

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
2390
金钱
2390
注册时间
2019-9-25
在线时间
397 小时
发表于 2021-4-19 10:26:14 | 显示全部楼层
linux系统烧录到SD卡的话,不需要设置啥环境变量的。如果之前设置过其他环境变量的话,执行setenv default -a;savevenv指令将其清除以后再重新启动看看。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-25 21:23

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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