Modify

Opened 10 years ago

Closed 10 years ago

Last modified 4 years ago

#2244 closed defect (fixed)

rb133 & gcc 4.2.1 problem

Reported by: acoul <alex@…> Owned by: juhosg
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version:
Keywords: adm5120 Cc:

Description

gcc-4.2.1 can not produce a bootable image for the RouterBoard RB133, an adm5120 CPU based unit. This is the case as of svn upto #8420. gcc-4.1.2 works fine.

Attachments (0)

Change History (9)

comment:1 Changed 10 years ago by acoul <alex@…>

RouterBoard rb532a boots fine with gcc-4.2.1. This is the console message when booting from network:

Press any key within 2 seconds to enter setup..
trying bootp protocol... OK
Got IP address: 192.168.1.56
resolved mac address 00:0B:DB:03:B9:7C
Gateway: 192.168.1.71
transfer started .......................... transfer ok, time=1.83s
setting up elf image... OK
jumping to kernel code
Linux version 2.6.22.1 (alex@aifnis) (gcc version 4.2.1) #2 Sun Aug 19 14:05:02 EEST 2007
CPU revision is: 0001800b
mem_detect: disable buffers for both banks
mem_detect: checking for 64MB chip in 1st bank
mem_detect: write 0x55555555 to 0xA0000000
mem_detect: delay 10000 ns

comment:2 Changed 10 years ago by juhosg

  • Component changed from packages to kernel
  • Milestone set to Kamikaze
  • Owner changed from developers to juhosg
  • Status changed from new to assigned

comment:3 Changed 10 years ago by juhosg

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with [8705], thanks.

comment:4 follow-up: Changed 10 years ago by acoul <alex@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened

almost there. RB133 works like a charm. this is what I get though on a RB133C3

RouterBOOT booter 2.7

RouterBoard 133C3

CPU frequency: 175 MHz
  Memory size:  16 MB

Press any key within 2 seconds to enter setup..
trying dhcp protocol... OK
resolved mac address 00:16:36:B4:18:6C
Gateway: 192.168.1.77
transfer started ........................ transfer ok, time=1.53s
setting up elf image... OK
jumping to kernel code
Linux version 2.6.22.4 (alex@lexy) (gcc version 4.2.1) #2 Mon Sep 10 08:39:30 EEST 2007
CPU revision is: 0001800b
mem_detect: checking for 64MB chip in 1st bank
mem_detect: write 0x55555555 to 0xA0000000
mem_detect: pattern at 0xA1000000 is 0x00000000
mem_detect: write 0x55555555 to 0xA0000000
mem_detect: pattern at 0xA2000000 is 0x55555555
mem_detect: mirrored data found at offset 0x02000000
mem_detect: chip size in 1st bank is 32MB
mem_detect: 1x32MB memory found
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NOR flash
Prom     : RouterBOOT
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd

here is the RB133 dmesg

RouterBOOT booter 2.7

RouterBoard 133

CPU frequency: 175 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
trying dhcp protocol... OK
resolved mac address 00:16:36:B4:18:6C
Gateway: 192.168.1.77
transfer started ........................ transfer ok, time=1.54s
setting up elf image... OK
jumping to kernel code
Linux version 2.6.22.4 (alex@lexy) (gcc version 4.2.1) #2 Mon Sep 10 08:39:30 EEST 2007
CPU revision is: 0001800b
mem_detect: checking for 64MB chip in 1st bank
mem_detect: write 0x55555555 to 0xA0000000
mem_detect: pattern at 0xA2000000 is 0x3D3B833A
mem_detect: chip size in 1st bank is 64MB
mem_detect: 1x64MB memory found
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NOR flash
Prom     : RouterBOOT
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 16256
Kernel command line: console=ttyS0,115200 rootfstype=squashfs,yaffs2,jffs2 init=/etc/preinit
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
Using 87.500 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61616k/65536k available (2000k kernel code, 3856k reserved, 355k data, 812k init, 0k highmem)
Mount-cache hash table entries: 512
adm5120: registered board 'Generic ADM5120 board'
adm5120: registered board 'Cellvision CAS-630/630W'
adm5120: registered board 'Cellvision CAS-670/670W'
adm5120: registered board 'Cellvision CAS-700/700W'
adm5120: registered board 'Cellvision CAS-771/771W'
adm5120: registered board 'Cellvision CAS-790'
adm5120: registered board 'Cellvision CAS-861/861W'
adm5120: registered board 'Compex NetPassage 27G'
adm5120: registered board 'Compex NetPassage 28G'
adm5120: registered board 'Compex WP54AG'
adm5120: registered board 'Compex WP54G'
adm5120: registered board 'Compex WP54G-WRT'
adm5120: registered board 'Compex WPP54AG'
adm5120: registered board 'Compex WPP54G'
adm5120: registered board 'Edimax BR-6104K'
adm5120: registered board 'Infineon EASY 5120P-ATA Reference Board'
adm5120: registered board 'Infineon EASY 5120-RT Reference Board'
adm5120: registered board 'Infineon EASY 5120-WVoIP Reference Board'
adm5120: registered board 'Infineon EASY 83000 Reference Board'
adm5120: registered board 'Mikrotik RouterBOARD 111'
adm5120: registered board 'Mikrotik RouterBOARD 112'
adm5120: registered board 'Mikrotik RouterBOARD 133'
adm5120: registered board 'Mikrotik RouterBOARD 133C'
adm5120: registered board 'Mikrotik RouterBOARD 150'
adm5120: registered board 'Mikrotik RouterBOARD 153'
adm5120: registered board 'ZyXEL Prestige 334WT'
adm5120: registered board 'ZyXEL Prestige 335/335WT'
NET: Registered protocol family 16
adm5120: setting up board 'Mikrotik RouterBOARD 133'
adm5120: system has PCI BIOS
registering PCI controller with io_map_base unset
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: mapping irq for 0000:00:01.0 pin:1, irq:14
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ώώ 2001-2006 Red Hat, Inc.
yaffs Sep 10 2007 02:24:02 Installing.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: AMBA driver $Revision: 1.41 $
APB:UART0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
console handover: boot [early0] -> real [ttyS0]
APB:UART1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
eth0: ADM5120 switch port0
eth1: ADM5120 switch port1
eth2: ADM5120 switch port2
eth3: ADM5120 switch port3
eth4: ADM5120 switch port4
eth5: ADM5120 switch port5
adm5120-flash.0: probing at 0x1FC00000, size:1024KiB, width:8 bits
Found: PMC Pm39LV010
adm5120-flash.0: Found 1 x8 devices at 0x0 in 8-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: reducing map size to 128KiB
adm5120-flash.0: found at 0x1FC00000, size:128KiB, width:8 bits
adm5120-flash.0: adding static partitions
Creating 2 MTD partitions on "adm5120-flash.0":
0x00000000-0x00010000 : "booter"
0x00010000-0x00020000 : "firmware"
block2mtd: version $Revision: 1.30 $
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00400000 : "RouterBoard NAND Boot"
0x00400000-0x04000000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squasfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"
GPIO LEDs driver registered
Registered led device: power
Registered led device: user
nf_conntrack version 0.5.0 (512 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
trxsplit: searching TRX header in 'booter'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'firmware'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'RouterBoard NAND Boot'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'rootfs'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'NAND 64MiB 3,3V 8-bit'
trxsplit: no TRX header found
Freeing unused kernel memory: 812k freed
Warning: unable to open an initial console.
init started:  BusyBox v1.4.2 (2007-09-10 02:16:36 EEST) multi-call binary

Please press Enter to activate this console. Algorithmics/MIPS FPU Emulator v1.5
BusyBox v1.4.2 (2007-09-10 02:16:36 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r8727) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------

comment:5 in reply to: ↑ 4 Changed 10 years ago by juhosg

  • Keywords adm5120 added

Can you try it again with [8728]?

comment:6 Changed 10 years ago by acoul <alex@…>

I just gave the unit away. RB133 works well. I will report back as soon as I get an RB133C3 in my hands. I think though it's safe to close this bug. Amazing work juhosg, thank you !!

comment:7 Changed 10 years ago by acoul <alex@…>

here is an RB133/OpenWRT combo in action (upper panel)
http://wind.awmn.net/files/photos/photo-4489.jpg

comment:8 Changed 10 years ago by juhosg

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:9 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.