Skip to content

Instantly share code, notes, and snippets.

@dlintw
Created March 25, 2019 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlintw/c3f67413493241d51984a1fdce2b3c1c to your computer and use it in GitHub Desktop.
Save dlintw/c3f67413493241d51984a1fdce2b3c1c to your computer and use it in GitHub Desktop.
boot sh4twbox on sda3 with ext3 failed
Board: STx7105-PDK [32-bit mode]
U-Boot 1.3.1 (Oct 6 2013 - 04:36:18) - stm23_0045
DRAM: 256 MiB
SPI: ST M25P80 (1MiB) device (page=256,erase=4096)
In: serial
Out: serial
Err: serial
UBOOTWPDA version: 8365896
swUpdate.c:1031 'Purple' LED, trying internal USB at first
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Failed to mount ext2 filesystem...
reading uboot.sh
744 bytes read
load_uboot_env.c:31 = uboot.sh content=
=# UBOOTWPDA config http://www.twpda.com/2013/08/uboot-code.html
# NOTE: This file's length should under 988 bytes
# bootargs(old): root=8:1 means sda1, sda2 8:2, sdb1 8:17, sdb2 8:18
# bootargs(new): root=/dev/sda2
# bootcmd: 0:1 first part, 0:2 2nd part
# usbcfg: 0:internal, 1:external
# boot settings for internal USB sda1:kernel+uboot.sh sda2:ext4
setenv bootargs 'console=ttyAS0,115200 rootdelay=0 root=/dev/sda3 rootfstype=ext 3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:10:08:E2:12:06:BD phyadd r:0,watchdog:5000 mem=256M bigphysarea=2048'
setenv bootcmd 'usbcfg 0; usb start; usb info; usb part; fatload usb 0:1 8000000 0 vmlinux.ub; bootm 80000000'
#setenv bootcmd 'ext2load usb 0:2 80000000 boot/vmlinux.ub; bootm 80000000'
= end of uboot.sh =
Hit any key to stop autoboot: 0
set usbcfg=USB_INT_REGS
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
1: Hub, USB Revision 1.10
- OHCI Root Hub
- Class: Hub
- PacketSize: 8 Configurations: 1
- Vendor: 0x0000 Product 0x0000 Version 0.0
Configuration: 1
- Interfaces: 1 Self Powered 0mA
Interface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 2 Interval 255ms
2: Mass Storage, USB Revision 2.0
- General UDisk 1404040805218706967106
- Class: (from Interface) Mass Storage
- PacketSize: 64 Configurations: 1
- Vendor: 0xabcd Product 0x1234 Version 1.0
Configuration: 1
- Interfaces: 1 Bus Powered 100mA
Interface: 0
- Alternate Setting 0, Endpoints: 2
- Class Mass Storage, Transp. SCSI, Bulk only
- Endpoint 1 Out Bulk MaxPacket 64
- Endpoint 1 In Bulk MaxPacket 64
print_part of 0
Partition Map for USB device 0 -- Partition Type: DOS
Partition Start Sector Num Sectors Type
1 62 130634 b
2 130696 503564 83
3 634260 503564 83
print_part of 1
## Unknown partition table
print_part of 2
## Unknown partition table
print_part of 3
## Unknown partition table
print_part of 4
## Unknown partition table
reading vmlinux.ub
................................................................................ ................................................................................ ...................................................................................................
2660078 bytes read
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.59_stm24_0211-PDK71
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 2660014 Bytes = 2.5 MiB
Load Address: 80800000
Entry Point: 80801000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
CMDLen=186
There is "hwaddr" keywords! Position=112
Read MacAddr=24cf21b28c1f
[iptv_kernel]:Starting kernel console=ttyAS0,115200 rootdelay=0 root=/dev/sda3 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:24:cf:21:b2:8c:1f phyaddr:0,watchdog:5000 mem=256M bigphysarea=2048 - 0x00000000 - 0 ...
Linux version 2.6.32.59_stm24_0211-PDK7105-32BITS (dlin@t64) (gcc version 4.7.3 20130514 (STMicroelectronics/Linux Base 4.7.3-124) (GCC) ) #46 PREEMPT Wed Oct 30 07:57:11 CST 2013
Boot params:
... MOUNT_ROOT_RDONLY - 00000001
... RAMDISK_FLAGS - 00000000
... ORIG_ROOT_DEV - 00000200
... LOADER_TYPE - 00000000
... INITRD_START - 00000000
... INITRD_SIZE - 00000000
Booting machvec: pdk7105
Node 0: start_pfn = 0x40000, low = 0x50000
Zone PFN ranges:
Normal 0x00040000 -> 0x00050000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00040000 -> 0x00050000
STMicroelectronics PDK7105-SDK board initialisation
STx7105 version 3.x
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttyAS0,115200 rootdelay=0 root=/dev/sda3 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:24:cf:21:b2:8c:1f phyaddr:0,watchdog:5000 mem=256M bigphysarea=2048
bpa2: partition 'bigphysarea' created at 0x40e92000, size 8192 kB (0x00800000 B)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
PVR=04909200 CVR=60880000 PRR=00009e20
I-cache : n_ways=2 n_sets=512 way_incr=16384
I-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
D-cache : n_ways=2 n_sets=512 way_incr=16384
D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
Memory: 238592k/262144k available (3021k kernel code, 1339k data, 136k init)
Hierarchical RCU implementation.
NR_IRQS:600
Failed to enable clk CLKA_REF, ignoring
Failed to enable clk CLKA_PLL0LS, ignoring
Console: colour dummy device 80x25
console [ttyAS0] enabled
sh_tmu: TMU0 used for clock events
sh_tmu: TMU0 used for periodic clock events
sh_tmu: TMU1 used as clock source
Calibrating delay loop... 447.48 BogoMIPS (lpj=894976)
Mount-cache hash table entries: 512
CPU: STx7105
[STM][PM-Sys]: ilc3 @ 4096
NET: Registered protocol family 16
Configuring FLASH for boot-from-spi: boot_mode=2
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
DMA: Registering DMA API.
Switching to clocksource TMU1
sh_tmu: TMU0 used for oneshot clock events
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
sq: Registering store queue API.
[STM]: [CPUFreq] Registered
[STM]: [PM]: Suspend support registered
Slow work thread pool: Starting up
Slow work thread pool: Ready
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
fuse init (API version 7.13)
msgmni has been set to 466
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
lirc_dev: IR Remote Control driver registered, major 61
lirc-stm: probe found data for platform device lirc-stm
lirc-stm: STM LIRC plugin using IRQ 125 in IR mode
lirc_dev: lirc_register_driver: sample_rate: 0
STMicroelectronics LIRC driver initialized.
STMicroelectronics ASC driver initialized
stm-asc.0: ttyAS0 at MMIO 0xfd032000 (irq = 121) is a stm-asc
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
MiPHY driver style MiPHY3-65 probed successfully
MiPHY3-65, c1.5 Claimed by sata-stm
scsi0 : sata-stm
ata1: SATA max UDMA/133 irq 72
physmap platform flash device: 00000000 at 00000000
physmap-flash physmap-flash.0: Could not reserve memory region
physmap-flash: probe of physmap-flash.0 failed with error -12
ata1: SATA link down (SStatus 0 SControl 0)
stmmac - user ID: 0x10, Synopsys ID: 0x33
No HW DMA feature register supported
Enhanced/Alternate descriptors
RX Checksum Offload Engine supported
TX Checksum insertion supported
Wake-Up On Lan supported
nwhw_config: (eth0) setting mac address: 24:cf:21:b2:8c:1f
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
stm_usb_probe: usb_phy_clk clock not found for stm-usb.0
stm-ehci stm-ehci.0: STMicroelectronics EHCI Host Controller
stm-ehci stm-ehci.0: new USB bus registered, assigned bus number 1
stm-ehci stm-ehci.0: irq 169, io mem 0xfe1ffe00
stm-ehci stm-ehci.0: USB 0.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: STMicroelectronics EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.32.59_stm24_0211-PDK7105-32BITS ehci_hcd
usb usb1: SerialNumber: stm-ehci.0
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
stm-ohci stm-ohci.0: STMicroelectronics OHCI Host Controller
stm-ohci stm-ohci.0: new USB bus registered, assigned bus number 2
stm-ohci stm-ohci.0: irq 168, io mem 0xfe1ffc00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: STMicroelectronics OHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.32.59_stm24_0211-PDK7105-32BITS ohci_hcd
usb usb2: SerialNumber: stm-ohci.0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
stm_usb_probe: usb_phy_clk clock not found for stm-usb.1
stm-ehci stm-ehci.1: STMicroelectronics EHCI Host Controller
stm-ehci stm-ehci.1: new USB bus registered, assigned bus number 3
stm-ehci stm-ehci.1: irq 143, io mem 0xfeaffe00
stm-ehci stm-ehci.1: USB 0.0 started, EHCI 1.00
usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: STMicroelectronics EHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.32.59_stm24_0211-PDK7105-32BITS ehci_hcd
usb usb3: SerialNumber: stm-ehci.1
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
stm-ohci stm-ohci.1: STMicroelectronics OHCI Host Controller
stm-ohci stm-ohci.1: new USB bus registered, assigned bus number 4
stm-ohci stm-ohci.1: irq 142, io mem 0xfeaffc00
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: STMicroelectronics OHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.32.59_stm24_0211-PDK7105-32BITS ohci_hcd
usb usb4: SerialNumber: stm-ohci.1
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device using stm-ehci and address 2
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sh_tmu: TMU0 kept as earlytimer
sh_tmu: TMU1 kept as earlytimer
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
[STM][PM-Sys]: emi @ 40
[STM][PM-Sys]: gpio @ 20
STMicroelectronics - Coprocessors st231 Init
st-coprocessor-0: No RAM reserved
st231.0 Coprocessor -------------------------------------------
not configured!
---------------------------------------------------------------
st-coprocessor-1: No RAM reserved
st231.1 Coprocessor -------------------------------------------
not configured!
---------------------------------------------------------------
DMA: Registering fdma_dmac.0 handler (16 channels).
IRQ 140/fdma_dmac.0: IRQF_DISABLED is not guaranteed on shared IRQs
DMA: Registering fdma_dmac.1 handler (16 channels).
IRQ 141/fdma_dmac.1: IRQF_DISABLED is not guaranteed on shared IRQs
stm-rng hardware driver 1.0 configured
stm-rtc stm-rtc: rtc core: registered stm-rtc as rtc0
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
stm-rtc stm-rtc: setting system clock to 2019-07-02 04:18:24 UTC (1562041104)
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "sda3" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
setenv bootargs 'console=ttyAS0,115200 rootdelay=0 root=/dev/sda3 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:10:08:E2:12:06:BD phyaddr:0,watchdog:5000 mem=256M bigphysarea=2048'
setenv bootcmd 'usbcfg 0; usb start; usb info; usb part; fatload usb 0:1 80000000 vmlinux.ub; bootm 80000000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment