OpenWrt Forum Archive

Topic: Which target for Edimax BR-6104K?

The content of this topic has been archived between 12 Apr 2018 and 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Berny wrote:

I also played too much with the configuration, here is what I missed:
- libgcc (openwrt configuration: Base system)
- udevtrigger (openwrt configuration: Utilities)
- special mount-utilities

It would be nice to come up with a suggested 'example' configuration for this device - the one most likely to work, and support as many devices as possible.  If that were included in SVN it would be extremely useful!

OK. Boot success on BR6104KP with Linux kernel 2.6.22-rc6

Linux Loader Menu
====================
(a) Download vmlinuz to flash ...
(b) Download vmlinuz to sdram (for debug) ...
(c) Exit

Please enter your key : c
no sys signature found!!

jump to linux code!!


LZMA loader for BR-6104KP, Copyright (C) 2007 OpenWrt.org

Looking for TRX header... found at 0xBFC30000, kernel in partition 0
decompressing kernel... done!
launching kernel...

mem_detect: disable buffers for both banks
mem_detect: checking for 16MB chip in 1st bank
mem_detect: chip size in 1st bank is 16MB
mem_detect: check presence of 2nd bank
mem_detect: write 0x55555555 to 0xA1FFFFFC
mem_detect: delay 10000 ns
mem_detect: pattern at 0xA1FFFFFC is 0x02003021
mem_detect: enable buffers for both banks
mem_detect: 1x16MB memory found
Linux version 2.6.22-rc6 (jahns@pcm1035) (gcc version 4.1.2) #15 Tue Jul 10 09:7ADM5120P revision 8, running at 175MHz
Boot loader is: Unknown
Booted from   : NOR flash
Board is      : Unknown ADM5120 board
Memory size   : 16MB
CPU revision is: 0001800b
ADM5120 board setup
Determined physical RAM map:
memory: 00d05000 @ 002fb000 (usable)
Wasting 24416 bytes for tracking 763 unused pages
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 4064
Kernel command line: console=ttyS0,115200 rootfs=squashfs 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: 64 (order: 6, 256 bytes)
Using 87.500 MHz high precision timer.
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13184k/13332k available (2195k kernel code, 148k reserved, 600k data, 1)Mount-cache hash table entries: 512
NET: Registered protocol family 16
adm5120: system has no PCI BIOS
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: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
io scheduler noop registered
io scheduler deadline registered (default)
ttyS0 at I/O 0x12600000 (irq = 9) is a ADM5120
ttyS1 at I/O 0x12800000 (irq = 10) is a ADM5120
eth0: ADM5120 switch port0
eth1: ADM5120 switch port1
eth2: ADM5120 switch port2
eth3: ADM5120 switch port3
eth4: ADM5120 switch port4
$Id: ftl.c,v 1.59 2005/11/29 14:48:31 gleixner Exp $
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
INFTL: inftlcore.c $Revision: 1.19 $, inftlmount.c $Revision: 1.18 $
SSFDC read-only Flash Translation layer
adm5120 : flash init : 0x1fc00000 0x00400000
adm5120 physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
adm5120 physically mapped flash: CFI does not contain boot bank location. Assum.number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x200000 at 0x1fc00000
adm5120 : using CFE flash mapping
bootloader size: 196608
Updating TRX offsets and length:
old trx = [0x0000001c, 0x000df800, 0x00000000], len=0x0019a000 crc32=0x7209dcf7
new trx = [0x0000001c, 0x000df800, 0x00000000], len=0x000df800 crc32=0x3ab5e3de
Done
Creating 4 MTD partitions on "adm5120 physically mapped flash":
0x00000000-0x00030000 : "cfe"
mtd: Giving out device 0 to cfe
rfd_ftl: no RFD magic found in 'cfe'
ftl_cs: FTL header not found.
0x00030000-0x001f0000 : "linux"
mtd: Giving out device 1 to linux
rfd_ftl: no RFD magic found in 'linux'
ftl_cs: FTL header not found.
0x0010f800-0x001f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-ymtd: Giving out device 2 to rootfs
rfd_ftl: no RFD magic found in 'rootfs'
ftl_cs: FTL header corrupt!
0x001d0000-0x001f0000 : "rootfs_data"
mtd: Giving out device 3 to rootfs_data
rfd_ftl: no RFD magic found in 'rootfs_data'
ftl_cs: FTL header not found.
0x001f0000-0x00200000 : "nvram"
mtd: Giving out device 4 to nvram
ftl_cs: FTL header not found.
block2mtd: version $Revision: 1.30 $
RB1xx nand
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
RB1xxx nand device not found
NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND 128MiB 1,8V 8-b)flash size: 128 MiB
page size: 512 bytes
OOB area size: 16 bytes
sector size: 16 KiB
pages number: 262144
pages per sector: 32
bus width: 8
bits in sector size: 14
bits in page size: 9
bits in OOB size: 4
flash size with OOB: 135168 KiB
page address bytes: 4
sector address bytes: 3
options: 0x62
Scanning device for bad blocks
Creating 1 MTD partitions on "NAND 128MiB 1,8V 8-bit":
0x00000000-0x08000000 : "NAND simulator partition 0"
mtd: Giving out device 5 to NAND simulator partition 0
ftl_cs: FTL header not found.
GPIO LEDs driver registered
Registered led device: gpio0
Registered led device: gpio1
Registered led device: gpio2
Registered led device: gpio3
gpio-led gpio-led.4: gpio_request failed
gpio-led: probe of gpio-led.4 failed with error -22
gpio-led gpio-led.5: gpio_request failed
gpio-led: probe of gpio-led.5 failed with error -22
gpio-led gpio-led.6: gpio_request failed
gpio-led: probe of gpio-led.6 failed with error -22
gpio-led gpio-led.7: gpio_request failed
gpio-led: probe of gpio-led.7 failed with error -22
Registered led device: port0led0
Registered led device: port0led1
Registered led device: port0led2
Registered led device: port1led0
Registered led device: port1led1
Registered led device: port1led2
Registered led device: port2led0
Registered led device: port2led1
Registered led device: port2led2
Registered led device: port3led0
Registered led device: port3led1
Registered led device: port3led2
Registered led device: port4led0
Registered led device: port4led1
Registered led device: port4led2
nf_conntrack version 0.5.0 (104 buckets, 832 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>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 136k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
switching to jffs2
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -
init started:  BusyBox v1.4.2 (2007-07-05 12:00:58 CEST) multi-call binary
command='/etc/init.d/rcS S boot' action='1' terminal='/dev/ttyS0'
command='/etc/init.d/rcS K stop' action='64' terminal='/dev/ttyS0'
command='/bin/ash --login' action='4' terminal='/dev/tts/0'
command='/bin/ash --login' action='4' terminal='/dev/ttyS0'
command='/bin/ash --login' action='4' terminal='/dev/tty1'
Please press Enter to activate this console.

BusyBox v1.4.2 (2007-07-05 12:00:58 CEST) 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, r7861) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/#
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
root@OpenWrt:/# uname -a
Linux OpenWrt 2.6.22-rc6 #15 Tue Jul 10 09:08:56 CEST 2007 mips unknown

floe wrote:

I've put my flash-related patches in this ticket: https://dev.openwrt.org/ticket/2012
The second one is still a rather crude hack. If anybody has a better idea, go ahead..

Florian

Well... maybe.  I've updated the ticket with some thoughts.  The probe comes into inline_map_read()
and attempts to read memory which (I assume) causes a bus-error.  This is understandable
because this memory doesn't exist on the BR-6104KP.  We could add a check at the start of
inline_map_read() to see if the requested offset is more than 2MB (0x200000) and return
zero if so.  That's a less intrusive 'hack' and works fine on my Edimax, but I've no idea
of the implications for other boards.

The discussion might have continued from here.