Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I need to use uboot to boot into my router a debian image I was told that for the forst boot I could use a baremetal (if I dont use ext4 fs)
- the person I talked with gave me this pastebin >> http://kwzs.be/~kevin/wndr3700v2-debian-try-3.txt
- !Oh its big see the bottom of the Explanation
- console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(uboot),128k(env),6144k(rootfs),64k(caldata),1024k(uImage) board=WNDR3700v2 console=ttyS0,115200 mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),14848k(rootfs),64k(art)ro,15872k@0x70000(firmware) root=/dev/sda1 ro
- ====================================================================
- ^^end-product example^^
- # FIRST CASE ^ read by openwrt cat /proc/cmdline
- rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=DIR-615-C1 mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2944k(rootfs),64k(art)ro,3840k@0x30000(firmware)
- # SECOND CASE ^read by ONLY SUggested commandline for MIS in Debian Install (Made Possable via the web at :: >http://www.aurel32.net/info/debian_mips_qemu.php
- qemu-system-mips -M mips -kernel vmlinux-2.6.18-6-qemu -initrd initrd.gz -hda hda.img -append "root=/dev/ram console=ttyS0" -nographic
- ^^s0. . . .actual-case broken up into two cases^^
- THIS IS A PASTEBIN FROM A FRIEND WITH A WORKING BOARD
- BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
- Enter 'help' for a list of built-in commands.
- /bin/sh: can't access tty; job control turned off
- (initramfs) cat /proc/cmdline
- console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(uboot),128k(env),6144k(rootfs),64k(caldata),1024k(uImage) board=WNDR3700v2 console=ttyS0,115200 mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),14848k(rootfs),64k(art)ro,15872k@0x70000(firmware) root=/dev/sda1 ro
- (initramfs) Kernel panic - not syncing: Attempted to kill init!
- �
- U-Boot 1.1.4 (Oct 29 2010 - 14:27:18)
- WNDR3700v1h2 (ar7100) U-boot 0.0.12 dni13 V0.3
- DRAM: b8050000: 0xc0140180
- 64 MB
- Top of RAM usable for U-Boot at: 84000000
- Reserving 259k for U-Boot at: 83fbc000
- Reserving 192k for malloc() at: 83f8c000
- Reserving 44 Bytes for Board Info at: 83f8bfd4
- Reserving 36 Bytes for Global Data at: 83f8bfb0
- Reserving 128k for boot params() at: 83f6bfb0
- Stack Pointer at: 83f6bf98
- Now running in RAM - U-Boot at: 83fbc000
- id read 0x100000ff
- flash size 16MB, sector count = 256
- Flash: 16 MB
- In: serial
- Out: serial
- Err: serial
- Net: ag7100_enet_initialize...
- CHH:mac: 0 if: 2
- CHH:mac:verify: 0 if: 00000002
- : cfg1 0xf cfg2 0x7014
- in rtl8366s_phy_setup mac=-1543912652
- after rtl8366s_initChip ret=0
- eth0: c4:3d:c7:9b:3a:d5
- eth0 up
- CHH:mac: 1 if: 1
- CHH:mac:verify: 1 if: 00000001
- : cfg1 0xf cfg2 0x7014
- in rtl8366s_phy_setup mac=-1543912172
- eth1: c4:3d:c7:9b:3a:d6
- eth1 up
- eth0, eth1
- Trying eth0
- : unit 0 phy is up...RGMii 1000Mbps full duplex
- #259:ag7100_set_mac_from_link
- : pll reg 0x18050010: 0x11110000
- : cfg_1: 0x1ff0000
- : cfg_2: 0x3ff
- : cfg_3: 0x8001ff
- : cfg_4: 0xffff
- : cfg_5: 0xfffef
- : done cfg2 0x7215 ifctl 0x40605060 miictrl 0x22
- Client starts...[Listening] for ADVERTISE...T
- Abort
- nmrp server is stopped or failed !
- Hit any key to stop autoboot: 0
- ar7100> printenv
- bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(uboot),128k(env),6144k(rootfs),64k(caldata),1024k(uImage)
- bootcmd=fsload 80800000 image/uImage;bootm 80800000
- bootdelay=1
- baudrate=115200
- ipaddr=192.168.1.2
- serverip=192.168.1.1
- clearenv=erase 0xbf050000 +0x10000
- stdin=serial
- stdout=serial
- stderr=serial
- ethact=eth0
- Environment size: 366/65532 bytes
- ar7100> ? setenv
- setenv name value ...
- - set environment variable 'name' to 'value ...'
- setenv name
- - delete enviq' - try 'help'e 'name'
- ar7100> q
- ar7100> command 'otargs
- ar7100>
- ar7100>
- ar7100> setenv bootargs
- ar7100>
- ar7100> printenv
- bootcmd=fsload 80800000 image/uImage;bootm 80800000
- bootdelay=1
- baudrate=115200
- ipaddr=192.168.1.2
- serverip=192.168.1.1
- clearenv=erase 0xbf050000 +0x10000
- stdin=serial
- stdout=serial
- stderr=serial
- ethact=eth0
- Environment size: 208/65532 bytes
- ar7100> saveenv
- Saving Environment to Flash...
- Protect off BF050000 ... BF05FFFF
- Un-Protecting sectors 5..5 in bank 1
- Un-Protected 1 sectors
- Erasing Flash...Erase Flash from 0xbf050000 to 0xbf05ffff in Bank # 1
- First 0x5 last 0x5 sector size 0x10000 5
- Erased 1 sectors
- Writing to Flash... write addr: bf050000
- done
- Protecting sectors 5..5 in bank 1
- Protected 1 sectors
- ar7100> �
- U-Boot 1.1.4 (Oct 29 2010 - 14:27:18)
- WNDR3700v1h2 (ar7100) U-boot 0.0.12 dni13 V0.3
- DRAM: b8050000: 0xc0140180
- 64 MB
- Top of RAM usable for U-Boot at: 84000000
- Reserving 259k for U-Boot at: 83fbc000
- Reserving 192k for malloc() at: 83f8c000
- Reserving 44 Bytes for Board Info at: 83f8bfd4
- Reserving 36 Bytes for Global Data at: 83f8bfb0
- Reserving 128k for boot params() at: 83f6bfb0
- Stack Pointer at: 83f6bf98
- Now running in RAM - U-Boot at: 83fbc000
- id read 0x100000ff
- flash size 16MB, sector count = 256
- Flash: 16 MB
- In: serial
- Out: serial
- Err: serial
- Net: ag7100_enet_initialize...
- CHH:mac: 0 if: 2
- CHH:mac:verify: 0 if: 00000002
- : cfg1 0xf cfg2 0x7014
- in rtl8366s_phy_setup mac=-1543912652
- after rtl8366s_initChip ret=0
- eth0: c4:3d:c7:9b:3a:d5
- eth0 up
- CHH:mac: 1 if: 1
- CHH:mac:verify: 1 if: 00000001
- : cfg1 0xf cfg2 0x7014
- in rtl8366s_phy_setup mac=-1543912172
- eth1: c4:3d:c7:9b:3a:d6
- eth1 up
- eth0, eth1
- Trying eth0
- : unit 0 phy is up...RGMii 1000Mbps full duplex
- #259:ag7100_set_mac_from_link
- : pll reg 0x18050010: 0x11110000
- : cfg_1: 0x1ff0000
- : cfg_2: 0x3ff
- : cfg_3: 0x8001ff
- : cfg_4: 0xffff
- : cfg_5: 0xfffef
- : done cfg2 0x7215 ifctl 0x40605060 miictrl 0x22
- Client starts...[Listening] for ADVERTISE...TTT
- Retry count exceeded; boot the image as usual
- nmrp server is stopped or failed !
- Hit any key to stop autoboot: 0
- Verifying Checksum ... OK
- ### SQUASHFS loading 'image/uImage' to 0x80800000
- ### SQUASHFS load complete: 2699647 bytes loaded to 0x80800000
- ## Booting image at 80800000 ...
- Image Name: MIPS OpenWrt Linux
- Created: 2011-07-01 4:35:48 UTC
- Image Type: MIPS Linux Kernel Image (lzma compressed)
- Data Size: 2699583 Bytes = 2.6 MB
- Load Address: 80060000
- Entry Point: 80060000
- Verifying Checksum ... OK
- Uncompressing Kernel Image ... OK
- No initrd
- ## Transferring control to Linux (at address 80060000) ...
- ## Giving linux memsize in bytes, 67108864
- Starting kernel ...
- Initializing cgroup subsys cpuset
- Initializing cgroup subsys cpu
- Linux version 2.6.39.2-1 (openwrt@build64) (gcc version 4.5.4 20110505 (prerelease) (Linaro GCC 4.5-2011.05-0) ) #9 Thu Jun 30 23:35:19 CDT 2011
- bootconsole [early0] enabled
- CPU revision is: 00019374 (MIPS 24Kc)
- SoC: Atheros AR7161 rev 2
- Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
- Determined physical RAM map:
- memory: 04000000 @ 00000000 (usable)
- Initrd not found or empty - disabling initrd
- Zone PFN ranges:
- Normal 0x00000000 -> 0x00004000
- Movable zone start PFN for each node
- early_node_map[1] active PFN ranges
- 0: 0x00000000 -> 0x00004000
- Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
- Kernel command line: board=WNDR3700v2 console=ttyS0,115200 mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),14848k(rootfs),64k(art)ro,15872k@0x70000(firmware) root=/dev/sda1 ro
- PID hash table entries: 256 (order: -2, 1024 bytes)
- Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
- Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
- Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
- Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
- Writing ErrCtl register=00000000
- Readback ErrCtl register=00000000
- Memory: 54740k/65536k available (2358k kernel code, 10796k reserved, 447k data, 6876k init, 0k highmem)
- SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
- NR_IRQS:80
- Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 512
- Initializing cgroup subsys ns
- ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
- Initializing cgroup subsys cpuacct
- Initializing cgroup subsys devices
- Initializing cgroup subsys freezer
- NET: Registered protocol family 16
- MIPS: machine is NETGEAR WNDR3700v2
- registering PCI controller with io_map_base unset
- bio: create slab <bio-0> at 0
- pci 0000:00:11.0: fixup device configuration
- pci 0000:00:12.0: fixup device configuration
- pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
- pci 0000:00:11.0: BAR 0: set to [mem 0x10000000-0x1000ffff] (PCI address [0x10000000-0x1000ffff])
- pci 0000:00:12.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
- pci 0000:00:12.0: BAR 0: set to [mem 0x10010000-0x1001ffff] (PCI address [0x10010000-0x1001ffff])
- PCI: mapping irq 72 to pin1@0000:00:11.0
- PCI: mapping irq 73 to pin1@0000:00:12.0
- Switching to clocksource MIPS
- 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
- UDP hash table entries: 256 (order: 0, 4096 bytes)
- UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- NET: Registered protocol family 1
- audit: initializing netlink socket (disabled)
- type=2000 audit(2.830:1): initialized
- VFS: Disk quotas dquot_6.5.2
- Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
- squashfs: version 4.0 (2009/01/31) Phillip Lougher
- JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
- msgmni has been set to 106
- Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
- io scheduler noop registered
- io scheduler deadline registered (default)
- Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
- serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
- console [ttyS0] enabled, bootconsole disabled
- console [ttyS0] enabled, bootconsole disabled
- Atheros AR71xx SPI Controller driver version 0.2.4
- m25p80 spi0.0: found mx25l12805d, expected m25p80
- m25p80 spi0.0: mx25l12805d (16384 Kbytes)
- 6 cmdlinepart partitions found on MTD device spi0.0
- Creating 6 MTD partitions on "spi0.0":
- 0x000000000000-0x000000050000 : "u-boot"
- 0x000000050000-0x000000070000 : "u-boot-env"
- 0x000000070000-0x000000170000 : "kernel"
- 0x000000170000-0x000000ff0000 : "rootfs"
- mtd: partition "rootfs" set to be root filesystem
- split_squashfs: no squashfs found in "spi0.0"
- 0x000000ff0000-0x000001000000 : "art"
- 0x000000070000-0x000000ff0000 : "firmware"
- Realtek RTL8366S ethernet switch driver version 0.2.2
- rtl8366s rtl8366s: using GPIO pins 5 (SDA) and 7 (SCK)
- rtl8366s rtl8366s: RTL8366 ver. 1 chip found
- Algorithmics/MIPS FPU Emulator v1.5
- rtl8366s: probed
- eth0: Atheros AG71xx at 0xb9000000, irq 4
- eth1: Atheros AG71xx at 0xba000000, irq 5
- Atheros AR71xx hardware watchdog driver version 0.1.0
- TCP westwood registered
- NET: Registered protocol family 17
- Bridge firewalling registered
- 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
- All bugs added by David S. Miller <davem@redhat.com>
- registered taskstats version 1
- Please be patient, while OpenWrt loads ...
- Freeing unused kernel memory: 6876k freed
- usbcore: registered new interface driver usbfs
- usbcore: registered new interface driver hub
- usbcore: registered new device driver usb
- ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- ar71xx-ehci ar71xx-ehci: Atheros AR71xx built-in EHCI controller
- ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
- ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
- ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
- hub 1-0:1.0: USB hub found
- hub 1-0:1.0: 2 ports detected
- ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
- ar71xx-ohci ar71xx-ohci: Atheros AR71xx built-in OHCI controller
- ar71xx-ohci ar71xx-ohci: new USB bus registered, assigned bus number 2
- ar71xx-ohci ar71xx-ohci: irq 14, io mem 0x1c000000
- hub 2-0:1.0: USB hub found
- hub 2-0:1.0: 2 ports detected
- usb 1-1: new high speed USB device number 2 using ar71xx-ehci
- hub 1-1:1.0: USB hub found
- hub 1-1:1.0: 4 ports detected
- usb 1-1.3: new high speed USB device number 3 using ar71xx-ehci
- SCSI subsystem initialized
- Initializing USB Mass Storage driver...
- scsi0 : usb-storage 1-1.3:1.0
- usbcore: registered new interface driver usb-storage
- USB Mass Storage support registered.
- scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
- sd 0:0:0:0: [sda] 8013824 512-byte logical blocks: (4.10 GB/3.82 GiB)
- sd 0:0:0:0: [sda] Write Protect is off
- sd 0:0:0:0: [sda] Assuming drive cache: write through
- sd 0:0:0:0: [sda] Assuming drive cache: write through
- sda: sda1 sda2
- sd 0:0:0:0: [sda] Assuming drive cache: write through
- sd 0:0:0:0: [sda] Attached SCSI removable disk
- EXT4-fs (sda1): INFO: recovery required on readonly filesystem
- EXT4-fs (sda1): write access will be enabled during recovery
- EXT4-fs (sda1): recovery complete
- EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
- INIT: version 2.88 booting
- Using makefile-style concurrent boot in runlevel S.
- Starting the hotplug events dispatcher: udevdudev[403]: starting version 164
- .
- Synthesizing the initial hotplug events...cfg80211: Calling CRDA to update world regulatory domain
- done.
- Waiting for /dev to be fully populated...input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
- PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
- udev[419]: renamed network interface eth0 to eth2
- ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=72
- PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
- ath: Failed to initialize MAC address
- ath: Unable to initialize hardware; initialization status: -126
- ath9k 0000:00:12.0: Failed to initialize device
- ath9k: probe of 0000:00:12.0 failed with error -126
- done.
- Activating swap...Adding 118104k swap on /dev/sda2. Priority:-1 extents:1 across:118104k
- done.
- EXT4-fs (sda1): re-mounted. Opts: (null)
- Checking root file system...fsck from util-linux-ng 2.17.2
- /dev/sda1: clean, 23566/242880 files, 168360/971447 blocks
- done.
- EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
- Cleaning up ifupdown....
- loop: module loaded
- Loading kernel modules...done.
- Setting up networking....
- Activating lvm and md swap...done.
- Checking file systems...fsck from util-linux-ng 2.17.2
- done.
- Mounting local filesystems...done.
- Activating swapfile swap...done.
- Cleaning up temporary files....
- Setting kernel variables ...done.
- Configuring network interfaces...done.
- Starting portmap daemon....
- Starting NFS common utilities: statd.
- Cleaning up temporary files....
- INIT: Entering runlevel: 2
- Using makefile-style concurrent boot in runlevel 2.
- Starting portmap daemon...Already running..
- Starting NFS common utilities: statd.
- Starting watchdog keepalive daemon: wd_keepalive.
- Starting enhanced syslogd: rsyslogd.
- Starting deferred execution scheduler: atd.
- Starting periodic command scheduler: cron.
- Starting MTA:NET: Registered protocol family 10
- sshd (1107): /proc/1107/oom_adj is deprecated, please use /proc/1107/oom_score_adj instead.
- Starting OpenBSD Secure Shell server: sshd.
- exim4.
- ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken ... failed!
- Stopping watchdog keepalive daemon....
- Starting watchdog daemon....
- Debian GNU/Linux 6.0 kodos ttyS0
- kodos login: root
- Password:
- Login incorrect
- kodos login: root
- Password:
- Last login: Thu Jun 30 21:54:53 CDT 2011 on ttyS0
- Linux kodos 2.6.39.2-1 #9 Thu Jun 30 23:35:19 CDT 2011 mips
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- root@kodos:~# free -m
- total used free shared buffers cached
- Mem: 60 39 20 0 6 20
- -/+ buffers/cache: 12 47
- Swap: 115 0 115
- root@kodos:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/sda1 3.7G 599M 2.9G 17% /
- tmpfs 31M 0 31M 0% /lib/init/rw
- udev 10M 80K 10M 1% /dev
- tmpfs 31M 0 31M 0% /dev/shm
- root@kodos:~# route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- root@kodos:~# ifconfig -a
- eth1 Link encap:Ethernet HWaddr c4:3d:c7:9b:3a:d6
- BROADCAST MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- Interrupt:5
- eth2 Link encap:Ethernet HWaddr c4:3d:c7:9b:3a:d5
- BROADCAST MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- Interrupt:4
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:8 errors:0 dropped:0 overruns:0 frame:0
- TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)
- wlan0 Link encap:Ethernet HWaddr c4:3d:c7:9b:3a:d5
- BROADCAST MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- root@kodos:~# dhclient eth1
- ADDRCONF(NETDEV_UP): eth1: link is not ready
- ^C
- root@kodos:~# dhclient eth2
- eth2: link up (1000Mbps/Full duplex)
- root@kodos:~# route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 0.0.0.0 192.168.182.10 0.0.0.0 UG 0 0 0 eth2
- 192.168.182.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
- root@kodos:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement