| | 415 | Copying 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 ) |
| | 419 | exit |
| | 420 | $ df /mnt/target |
| | 421 | }}} |
| | 422 | looks at my build host like this |
| | 423 | {{{ |
| | 424 | stappers@inertia:/src/src/debwrt |
| | 425 | $ sudo bash |
| | 426 | root@inertia:/src/src/debwrt |
| | 427 | # ( cd build/rootfs-mipsel-angel-2.0-1/ && tar c . ) | ( cd /mnt/target && tar x ) |
| | 428 | root@inertia:/src/src/debwrt |
| | 429 | # exit |
| | 430 | exit |
| | 431 | stappers@inertia:/src/src/debwrt |
| | 432 | $ df /mnt/target |
| | 433 | Bestandssysteem 1K-blokken Gebruikt Beschikbr Geb% Aangekoppeld op |
| | 434 | /dev/loop6 1845484 341108 1410628 20% /mnt/target |
| | 435 | stappers@inertia:/src/src/debwrt |
| | 436 | $ |
| | 437 | }}} |
| | 438 | |
| | 439 | We are ready with the disk preparation, let it go. |
| | 440 | {{{ |
| | 441 | sudo umount /mnt/target |
| | 442 | sudo losetup --detach /dev/loop6 |
| | 443 | }}} |
| | 444 | No output, both commands are silent (when no errors occure) |
| | 445 | |
| | 446 | |
| | 447 | ==== First debwrt start ==== |
| | 448 | |
| | 449 | Now we gonna start {{{qemu}}} again, now with much more parameters. Recognice {{{-hda}}} which takes the disk that was prepared. |
| | 450 | {{{ |
| | 451 | qemu-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 | |
| | 458 | This time there should ''no'' {{{kernel panic}}} expect to '''see''' |
| | 459 | {{{ |
| | 460 | . |
| | 461 | . |
| | 462 | . |
| | 463 | ata1.00: ATA-7: QEMU HARDDISK, 0.12.5, max UDMA/100 |
| | 464 | ata1.00: 4194304 sectors, multi 16: LBA48 |
| | 465 | ata2.00: ATAPI: QEMU DVD-ROM, 0.12.5, max UDMA/100 |
| | 466 | ata2.00: configured for UDMA/33 |
| | 467 | ata1.00: configured for UDMA/33 |
| | 468 | scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 0.12 PQ: 0 ANSI: 5 |
| | 469 | sd 0:0:0:0: [sda] 4194304 512-byte logical blocks: (2.14 GB/2.00 GiB) |
| | 470 | sd 0:0:0:0: [sda] Write Protect is off |
| | 471 | scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 0.12 PQ: 0 ANSI: 5 |
| | 472 | sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA |
| | 473 | sda: sda1 sda2 |
| | 474 | sd 0:0:0:0: [sda] Attached SCSI disk |
| | 475 | EXT3-fs: barriers not enabled |
| | 476 | kjournald starting. Commit interval 5 seconds |
| | 477 | EXT3-fs (sda1): mounted filesystem with writeback data mode |
| | 478 | VFS: Mounted root (ext3 filesystem) readonly on device 8:1. |
| | 479 | Freeing prom memory: 956k freed |
| | 480 | Freeing unused kernel memory: 212k freed |
| | 481 | INIT: version 2.88 booting |
| | 482 | EXT3-fs (sda1): using internal journal |
| | 483 | pcnet32 0000:00:0b.0: eth0: link up |
| | 484 | |
| | 485 | Welcome to the DebWrt post installation! |
| | 486 | |
| | 487 | Press ctrl-d for normal boot. Use vim.tiny to edit files. |
| | 488 | |
| | 489 | Note that both telnetd and sshd are running on: 192.168.1.1 and on 192.168.1.20. |
| | 490 | |
| | 491 | Second stage install instructions: |
| | 492 | sshd (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 | |
| | 506 | root@debwrt:/# |
| | 507 | }}} |
| | 508 | |
| | 509 | |