Skip to content

Instantly share code, notes, and snippets.

@dlintw
Created September 12, 2013 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dlintw/6531529 to your computer and use it in GitHub Desktop.
Save dlintw/6531529 to your computer and use it in GitHub Desktop.
sh4twbox [639108], kernel[88b563]
Board: STx7105-PDK [32-bit mode]
U-Boot 1.3.1 (Aug 31 2013 - 10:44:00) - stm23_0045
DRAM: 256 MiB
SPI: ST M25P80 (1MiB) device (page=256,erase=4096)
In: serial
Out: serial
Err: serial
TWPDA UBOOT version: 12086588
swUpdate.c:8771 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
load_uboot_env.c:73 Warn:uboot.sh not found on partition 1
load_uboot_env.c:73 Warn:uboot.sh not found on partition 2
swUpdate.c:8774 Trying external USB
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
load_uboot_env.c:58 ext2fs_set_blk_dev partLen == 0
load_uboot_env.c:58 ext2fs_set_blk_dev partLen == 0
Hit any key to stop autoboot: 0
set usbcfg=USB_EXT_REGS
** Bad partition 5 **
## Booting image at 80000000 ...
Bad Magic Number
PDK7105> printenv
bootdelay=0
baudrate=115200
ethaddr=DE:EA:FF:FF:01:01
board=pdk7105
monitor_base=0xA4000000
monitor_len=0x00040000
monitor_sec=1:0-1
load_addr=0x80000000
ipaddr=192.9.150.61
serverip=192.9.150.67
bootdelay=0
update_uboot=usb start;fatload usb 0 80000000 u-boot.bin;update_spi_uboot
unprot=protect off $monitor_sec
update=erase $monitor_sec;cp.b $load_addr $monitor_base $monitor_len;protect on $monitor_sec
ethaddr=12:34:56:78:06:BD
mytest=mytest
filesize=290
bootargs=console=ttyAS0,115200 rootdelay=0 root=8:21 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:10:08:E2:12:06:BD phyaddr:0,watchdog:5000 mem=120M bigphysarea=2048
bootcmd=usbcfg 1; ext2load usb 0:5 80000000 vmlinux.ub; bootm 80000000
stdin=serial
stdout=serial
stderr=serial
Environment size: 764/65532 bytes
PDK7105> rebot ot
waiti
Board: STx7105-PDK [32-bit mode]
U-Boot 1.3.1 (Aug 31 2013 - 10:44:00) - stm23_0045
DRAM: 256 MiB
SPI: ST M25P80 (1MiB) device (page=256,erase=4096)
In: serial
Out: serial
Err: serial
TWPDA UBOOT version: 12086588
swUpdate.c:8771 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
load_uboot_env.c:73 Warn:uboot.sh not found on partition 1
load_uboot_env.c:73 Warn:uboot.sh not found on partition 2
swUpdate.c:8774 Trying external USB
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... ERROR: [uboot_iptv]:CTL
ERROR: [uboot_iptv]:CTL
ERROR: [uboot_iptv]:CTL
1 Storage Device(s) found
Failed to mount ext2 filesystem...
reading uboot.sh
632 bytes read
load_uboot_env.c:31 = uboot.sh content=
=# case 1: save boot parameters to flash (2.6.23.17 kernel sda2)
# * bootargs: root=8:1 means sda1, sda2 8:2, sdb1 8:17, sdb2 8:18
# * bootcmd: 0:1 first usb partition, 0:2 2nd usb partition
# case 2: force boot external usb partition (2.6.32 kernel sda2)
# * usbcfg: 0:internal usb, 1:external usb
setenv bootargs 'console=ttyAS0,115200 rootdelay=0 root=/dev/sda6 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:10:08:E2:12:06:BD phyaddr:0,watchdog:5000 mem=120M bigphysarea=2048'
setenv bootcmd 'usbcfg 1; usb start; usb info; usb part; ext2load usb 0:6 80000000 vmlinux.ub; bootm 80000000'
# end of file
= end of uboot.sh =
Hit any key to stop autoboot: 0
set usbcfg=USB_EXT_REGS
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... ERROR: [uboot_iptv]:CTL
ERROR: [uboot_iptv]:CTL
ERROR: [uboot_iptv]:CTL
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
- JMicron USB to ATA/ATAPI bridge 7D25004B5002
- Class: (from Interface) Mass Storage
- PacketSize: 64 Configurations: 1
- Vendor: 0x152d Product 0x2338 Version 1.0
Configuration: 1
- Interfaces: 1 Self Powered 2mA
- String: "USB Mass Storage"
Interface: 0
- Alternate Setting 0, Endpoints: 2
- Class Mass Storage, Transp. SCSI, Bulk only
- String: "MSC Bulk-Only Transfer"
- Endpoint 1 In Bulk MaxPacket 64
- Endpoint 2 Out Bulk MaxPacket 64
print_part of 0
Partition Map for USB device 0 -- Partition Type: DOS
Partition Start Sector Num Sectors Type
1 2048 65536 6
2 67584 46784716883
3 467914752 20480000 5 Extd
5 467916800 104857683
6 468967424 409600083
7 473065472 409600083
8 477163520 409600083
9 481261568 713318482
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
3161673 bytes read
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.59-005a-PDK7105-32B
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 3161609 Bytes = 3 MiB
Load Address: 80800000
Entry Point: 80801000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
CMDLen=186
There is "hwaddr" keywords! Position=112
Read MacAddr=24cf21b48938
[iptv_kernel]:Starting kernel console=ttyAS0,115200 rootdelay=0 root=/dev/sda6 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:24:cf:21:b4:89:38 phyaddr:0,watchdog:5000 mem=120M bigphysarea=2048 - 0x00000000 - 0 ...
Linux version 2.6.32.59-005a-PDK7105-32BITS (dlin@t64) (gcc version 4.7.3 20130514 (STMicroelectronics/Linux Base 4.7.3-123) (GCC) ) #2 PREEMPT Wed Sep 11 10:32:41 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 = 0x47800
Zone PFN ranges:
Normal 0x00040000 -> 0x00047800
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00040000 -> 0x00047800
STMicroelectronics PDK7105-SDK board initialisation
STx7105 version 3.x
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 30480
Kernel command line: console=ttyAS0,115200 rootdelay=0 root=/dev/sda6 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:24:cf:21:b4:89:38 phyaddr:0,watchdog:5000 mem=120M bigphysarea=2048
bpa2: partition 'bigphysarea' created at 0x40e50000, size 8192 kB (0x00800000 B)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 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: 99768k/122880k available (3822k kernel code, 1372k data, 140k 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... 448.51 BogoMIPS (lpj=897024)
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.
cfg80211: Calling CRDA to update world regulatory domain
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: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
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.
[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 195
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
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
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
nwhw_config: (eth0) setting mac address: 24:cf:21:b4:89:38
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: 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: 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: 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: 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.
mice: PS/2 mouse device common for all mice
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!
---------------------------------------------------------------
usb 1-1: new high speed USB device using stm-ehci and address 2
DMA: Registering fdma_dmac.0 handler (16 channels).
IRQ 140/fdma_dmac.0: IRQF_DISABLED is not guaranteed on shared IRQs
stm-fdma stm-fdma.0: firmware: requesting fdma_STx7105_0.elf
DMA: Registering fdma_dmac.1 handler (16 channels).
IRQ 141/fdma_dmac.1: IRQF_DISABLED is not guaranteed on shared IRQs
stm-fdma stm-fdma.1: firmware: requesting fdma_STx7105_1.elf
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 2000-01-01 00:00:00 UTC (946684800)
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb 3-1: new high speed USB device using stm-ehci and address 2
usb 3-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access WDC WD25 00JB-00REA0 PQ: 0 ANSI: 2 CCS
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 488395055 512-byte logical blocks: (250 GB/232 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2 sda3 < sda5 sda6 sda7 sda8 sda9 >
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI disk
scsi 1:0:0:0: Direct-Access General USB Flash Disk 1100 PQ: 0 ANSI: 0 CCS
sd 1:0:0:0: [sdb] 15679488 512-byte logical blocks: (8.02 GB/7.47 GiB)
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1 sdb2
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda6, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with journal data mode.
VFS: Mounted root (ext3 filesystem) on device 8:6.
Freeing unused kernel memory: 140k freed
*** running: /etc/init.d/rcS call_by_inittab
dbg:mount fs
mount: mounting proc on /proc failed: No such file or directory
cat: can't open '/proc/cmdline': No such file or directory
dbg:proc/cmdline:
dbg:remount root rw
mount: can't read '/proc/mounts': No such file or directory
dbg:get hostname
dbg:mdev -s
/etc/init.d/rcS: line 19: can't create /proc/sys/kernel/hotplug: nonexistent directory
mdev: unknown user/group 'root:cdrom' on line 52
mdev: unknown user/group 'root:floppy' on line 53
mdev: unknown user/group 'root:audio' on line 60
mdev: unknown user/group 'root:audio' on line 61
mdev: unknown user/group 'root:audio' on line 62
mdev: unknown user/group 'root:audio' on line 63
mdev: unknown user/group 'root:audio' on line 64
mdev: unknown user/group 'root:audio' on line 66
mdev: unknown user/group 'root:audio' on line 67
mdev: unknown user/group 'root:audio' on line 68
mdev: unknown user/group 'root:audio' on line 69
mdev: unknown user/group 'root:audio' on line 70
mdev: unknown user/group 'root:dialout' on line 79
mdev: unknown user/group 'root:dialout' on line 80
mdev: unknown user/group 'root:dialout' on line 81
mdev: unknown user/group 'root:dialout' on line 82
mdev: unknown user/group 'root:video' on line 87
mdev: unknown user/group 'root:video' on line 101
mdev: unknown user/group 'root:video' on line 102
mdev: unknown user/group 'root:video' on line 105
mdev: unknown user/group 'root:dialout' on line 112
mdev: unknown user/group 'root:dialout' on line 113
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
sh: /lib/mdev/usbdisk_link: not found
dbg:mount devpts
dbg:sysctl -p
sysctl: can't change directory to '/proc/sys': No such file or directory
dbg:net
/etc/init.d/rcS: line 48: /etc/init.d/udhcpc: not found
/etc/init.d/rcS: line 52: /etc/init.d/backupip: not found
dbg:services
dbg:starting service telnetd
/etc/init.d/rcS: line 61: /etc/init.d/telnetd: not found
dbg:starting service ntpd
/etc/init.d/rcS: line 61: /etc/init.d/ntpd: not found
dbg:starting service crond
/etc/init.d/rcS: line 61: /etc/init.d/crond: not found
Please press Enter to activate this console. platform fdma_dmac.0: Unable to load FDMA firmware: not present?
platform fdma_dmac.1: Unable to load FDMA firmware: not present?
00:32:28[0]root@sh4twbox / # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 24:cf:21:b4:89:38 brd ff:ff:ff:ff:ff:ff
00:32:32[0]root@sh4twbox / #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment