Changes between Version 10 and Version 11 of SmallSteps


Ignore:
Timestamp:
12/19/10 15:42:14 (2 years ago)
Author:
stappers
Comment:

disk is ready, do first start

Legend:

Unmodified
Added
Removed
Modified
  • SmallSteps

    v10 v11  
    402402}}} 
    403403 
     404Mounting the data partion 
    404405{{{ 
    405406sudo mkdir -p /mnt/target 
     
    412413}}} 
    413414 
     415Copying debwrt root filesystem in the data partion with these commands 
     416{{{ 
     417$ sudo bash 
     418# ( cd build/rootfs-mipsel-angel-2.0-1/ && tar c . ) | ( cd /mnt/target && tar x ) 
     419exit 
     420$ df /mnt/target 
     421}}} 
     422looks at my build host like this 
     423{{{ 
     424stappers@inertia:/src/src/debwrt 
     425$ sudo bash 
     426root@inertia:/src/src/debwrt 
     427# ( cd build/rootfs-mipsel-angel-2.0-1/ && tar c . ) | ( cd /mnt/target && tar x ) 
     428root@inertia:/src/src/debwrt 
     429# exit 
     430exit 
     431stappers@inertia:/src/src/debwrt 
     432$ df /mnt/target 
     433Bestandssysteem     1K-blokken  Gebruikt Beschikbr Geb% Aangekoppeld op 
     434/dev/loop6             1845484    341108   1410628  20% /mnt/target 
     435stappers@inertia:/src/src/debwrt 
     436$  
     437}}} 
     438 
     439We are ready with the disk preparation, let it go. 
     440{{{ 
     441sudo umount /mnt/target 
     442sudo losetup --detach /dev/loop6 
     443}}} 
     444No output, both commands are silent (when no errors occure) 
     445 
     446 
     447==== First debwrt start ==== 
     448 
     449Now we gonna start {{{qemu}}} again, now with much more parameters. Recognice {{{-hda}}} which takes the disk that was prepared. 
     450{{{ 
     451qemu-system-mipsel -M malta -nographic \ 
     452  -kernel /usr/src/debwrt/build/openwrt-malta-le_Default-trunk-default/build_dir/linux-malta_le/vmlinux.elf \ 
     453  -hda /usr/src/debwrt/tile -parallel none -m 256 \ 
     454  -net user -net nic,model=pcnet \ 
     455  -append "root=/dev/sda1 probe_mask=0x3f init=/sbin/init root_delay=10" 
     456}}} 
     457 
     458This time there should ''no'' {{{kernel panic}}} expect to '''see''' 
     459{{{ 
     460   . 
     461   . 
     462   . 
     463ata1.00: ATA-7: QEMU HARDDISK, 0.12.5, max UDMA/100 
     464ata1.00: 4194304 sectors, multi 16: LBA48 
     465ata2.00: ATAPI: QEMU DVD-ROM, 0.12.5, max UDMA/100 
     466ata2.00: configured for UDMA/33 
     467ata1.00: configured for UDMA/33 
     468scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.12 PQ: 0 ANSI: 5 
     469sd 0:0:0:0: [sda] 4194304 512-byte logical blocks: (2.14 GB/2.00 GiB) 
     470sd 0:0:0:0: [sda] Write Protect is off 
     471scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5 
     472sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA 
     473 sda: sda1 sda2 
     474sd 0:0:0:0: [sda] Attached SCSI disk 
     475EXT3-fs: barriers not enabled 
     476kjournald starting.  Commit interval 5 seconds 
     477EXT3-fs (sda1): mounted filesystem with writeback data mode 
     478VFS: Mounted root (ext3 filesystem) readonly on device 8:1. 
     479Freeing prom memory: 956k freed 
     480Freeing unused kernel memory: 212k freed 
     481INIT: version 2.88 booting 
     482EXT3-fs (sda1): using internal journal 
     483pcnet32 0000:00:0b.0: eth0: link up 
     484 
     485Welcome to the DebWrt post installation! 
     486 
     487Press ctrl-d for normal boot. Use vim.tiny to edit files. 
     488 
     489Note that both telnetd and sshd are running on: 192.168.1.1 and on 192.168.1.20. 
     490 
     491Second stage install instructions: 
     492sshd (859): /proc/859/oom_adj is deprecated, please use /proc/859/oom_score_adj instead. 
     493 
     494  /debootstrap/debootstrap --second-stage  ; 
     495  rm -rf /var/cache/apt/archives  ; 
     496  mkdir -p /var/cache/apt/archives/partial  ; 
     497  echo "deb http://ftp.nl.debian.org/debian squeeze main" >>/etc/apt/sources.list 
     498# OR 
     499- echo "deb http://ftp.debian.org/debian sid main" >>/etc/apt/sources.list 
     500- for Lenny: dpkg-reconfigure dash 
     501 
     502 Don't execute these lines, these are a reminder for myself(amain) when preparing an DebWrt release: 
     503- rm -rf /lib/modules/* 
     504- rm -rf /lib/firmware/* 
     505 
     506root@debwrt:/#  
     507}}} 
     508 
     509 
    414510To be continued  (by stappers) 
    415511