Modify

Opened 5 years ago

Last modified 4 years ago

#12904 new defect

Bug, Missing yaffs rootfs partition, RB450G, After Installation

Reported by: M8R-ojiqhd@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: rb450G, nand, rootfs Cc:

Description

URL: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment
Repository Root: svn://svn.openwrt.org/openwrt
Repository UUID: 3c298f89-4303-0410-b956-a3cf2f4a3e73
Revision: 35326

I've applied this patch, to work-around the kernel partition limit. I might be totally wrong on its appropriateness, bur otherwise couldn't get through wget2nand.

Index: target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
===================================================================
--- target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c	(revision 35326)
+++ target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c	(working copy)
@@ -62,7 +62,7 @@
 	{
 		.name	= "kernel",
 		.offset	= (256 * 1024),
-		.size	= (4 * 1024 * 1024) - (256 * 1024),
+		.size	= (6 * 1024 * 1024) - (256 * 1024),
 	},
 	{
 		.name	= "rootfs",


dmesg,

[    0.000000] Linux version 3.3.8 (XXXX@YYYY) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sun Jan 27 19:17:09 EST 2013
[    0.000000] MyLoader: sysp=fffdffff, boardp=ffffffff, parts=fffdff7f
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7161 rev 2
[    0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00010000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00010000
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 802cdd40, node_mem_map 81000000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65024 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line:  console=ttyS0,115200 parts=1 boot_part_size=4194304 gpio=4031 HZ=340000000 mem=256M kmac=D4:CA:6D:3A:49:1E board=450G ver=3.02 boot=1 mlc=4 rootfstype=yaffs noinitrd
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 254776k/262144k available (2075k kernel code, 7368k reserved, 413k data, 1992k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 512
[    0.070000] NET: Registered protocol family 16
[    0.070000] gpiochip_add: registered GPIOs 0 to 15 on device: ath79
[    0.080000] MIPS: machine is MikroTik RouterBOARD 450G
[    0.490000] bio: create slab <bio-0> at 0
[    0.500000] Switching to clocksource MIPS
[    0.500000] NET: Registered protocol family 2
[    0.510000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.510000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.520000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.520000] TCP: Hash tables configured (established 8192 bind 8192)
[    0.530000] TCP reno registered
[    0.530000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.540000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.540000] NET: Registered protocol family 1
[    0.550000] PCI: CLS 0 bytes, default 32
[    2.630000] yaffs built Jan 27 2013 19:16:28 Installing. 
[    2.630000]  
[    2.630000] 
[    2.630000] 
[    2.630000] 
[    2.630000] YAFFS-WARNING CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED selected.
[    2.630000] 
[    2.630000] 
[    2.630000] 
[    2.630000] msgmni has been set to 497
[    2.640000] io scheduler noop registered
[    2.640000] io scheduler deadline registered (default)
[    2.640000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.670000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    2.680000] console [ttyS0] enabled, bootconsole disabled
[    2.690000] gpiochip_add: registered GPIOs 32 to 40 on device: spi-rb4xx-cpld
[    2.700000] m25p80 spi0.0: pm25lv512 (64 Kbytes)
[    2.700000] Creating 4 MTD partitions on "spi0.0":
[    2.710000] 0x000000000000-0x00000000b000 : "routerboot"
[    2.720000] 0x00000000b000-0x00000000c000 : "hard_config"
[    2.720000] 0x00000000d000-0x00000000f000 : "bios"
[    2.730000] 0x00000000f000-0x000000010000 : "soft_config"
[    2.740000] NAND flash driver for RouterBoard 4xx series version 0.2.0
[    2.740000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
[    2.750000] Scanning device for bad blocks
[    2.930000] Bad eraseblock 565 at 0x0000046a0000
[    3.490000] Bad eraseblock 2367 at 0x0000127e0000
[    3.540000] Bad eraseblock 2523 at 0x000013b60000
[    3.990000] Bad eraseblock 3960 at 0x00001ef00000
[    4.040000] Creating 3 MTD partitions on "NAND 512MiB 3,3V 8-bit":
[    4.050000] 0x000000000000-0x000000040000 : "booter"
[    4.050000] 0x000000040000-0x000000600000 : "kernel"
[    4.060000] 0x000000600000-0x000020000000 : "rootfs"
[    4.070000] mtd: partition "rootfs" set to be root filesystem
[    4.070000] split_squashfs: no squashfs found in "NAND 512MiB 3,3V 8-bit"
[    4.130000] ag71xx_mdio: probed
[    4.130000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    4.460000] ag71xx ag71xx.1: eth0: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
[    4.470000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    4.800000] eth1: Atheros AR8316 switch driver attached.
[    4.810000] ar8316: Using port 4 as PHY
[   10.950000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.0:00 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
[   10.960000] TCP cubic registered
[   10.970000] NET: Registered protocol family 17
[   10.970000] 8021q: 802.1Q VLAN Support v1.8
[   10.980000] Freeing unused kernel memory: 1992k freed
[   11.410000] Registered led device: rb4xx:yellow:user
[   11.410000] Registered led device: rb4xx:green:led1
[   11.410000] Registered led device: rb4xx:green:led2
[   11.410000] Registered led device: rb4xx:green:led3
[   11.410000] Registered led device: rb4xx:green:led4
[   11.410000] Registered led device: rb4xx:green:led5
[   13.460000] ar71xx: pll_reg 0xb8050014: 0x1099
[   13.460000] eth0: link up (100Mbps/Full duplex)
[   14.540000] eth0: link down
[   14.910000] PPP generic driver version 2.4.2
[   14.930000] tun: Universal TUN/TAP device driver, 1.6
[   14.940000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   14.950000] PPP MPPE Compression module registered
[   14.970000] sctp: Hash tables configured (established 8192 bind 16384)
[   14.990000] GRE over IPv4 demultiplexor driver
[   15.000000] GRE over IPv4 tunneling driver
[   15.010000] bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[   15.050000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.130000] NET: Registered protocol family 24
[   15.150000] nf_conntrack version 0.5.0 (4012 buckets, 16048 max)
[   15.220000] PPTP driver version 0.8.5
[   15.330000] mmc_spi spi0.2: SD/MMC host mmc0, no DMA, no WP, no poweroff
[   15.360000] mmc_spi spi0.2: setup: unsupported mode bits 4
[   15.360000] mmc_spi spi0.2: can't change chip-select polarity
[   17.770000] device eth1 entered promiscuous mode
[   18.460000] ar71xx: pll_reg 0xb8050014: 0x1099
[   18.460000] eth0: link up (100Mbps/Full duplex)
[   18.950000] ar71xx: pll_reg 0xb8050010: 0x110000
[   18.950000] eth1: link up (1000Mbps/Full duplex)
[   18.970000] br-lan: port 1(eth1) entered forwarding state
[   18.970000] br-lan: port 1(eth1) entered forwarding state
[   20.970000] br-lan: port 1(eth1) entered forwarding state

df,

root@OpenWrt:/# df -ha
Filesystem                Size      Used Available Use% Mounted on
rootfs                       0         0         0   0% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
tmpfs                   125.4M     72.0K    125.3M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
devpts                       0         0         0   0% /dev/pts
debugfs                      0         0         0   0% /sys/kernel/debug

mount,

root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)

Please let me know if more information would be helpful, I'll post back if required.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by techzilla

OP is back and just wanted to provide an update, I've recently recompiled AttitudeAdjustment and rootfs looks correct.

root@OpenWrt:/# df -ha
Filesystem                Size      Used Available Use% Mounted on
rootfs                  504.0M     10.7M    493.3M   2% /
/dev/root               504.0M     10.7M    493.3M   2% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
tmpfs                   125.3M     68.0K    125.3M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
devpts                       0         0         0   0% /dev/pts
debugfs                      0         0         0   0% /sys/kernel/debug
configfs                     0         0         0   0% /config

Thanks to all the OpenWRT devs, and especially those who may have worked on this bug.

comment:2 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 new .
Author


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

 
Note: See TracTickets for help on using tickets.