Changes between Version 30 and Version 31 of DebWrtSvn


Ignore:
Timestamp:
Aug 16, 2011, 10:49:46 PM (8 years ago)
Author:
amain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DebWrtSvn

    v30 v31  
    6969=== Root filesystem creation: Stage 2 ===
    7070
    71 Stage one prepared a filesystem with debootstrap. A DebWrt Debian root filesystem for the selected architecture(mips, mipsel, ...) has been created. It includes a default Debian installation with some important DebWrt cross-compiled packages installed. Flash the device with the appropriate DebWrt kernel. Boot the device. It will boot in 'firstboot' mode. When having a serial port, one will be able to immediately follow progress and see bash starting with some instructions. Otherwise connect to the device using ssh. Basically what needs to be done after logging in, is the debootstrap second stage install, which will install all Debian packages properly. This is a step that can not be done on the build host, because of the architecture mismatch. (I invested a lot of time in QEMU, but QEMU is not reliable for MIPS and MIPSEL. ARM works fine with QEMU )
     71Stage one prepared a filesystem with debootstrap. A DebWrt Debian root filesystem for the selected architecture(mips, mipsel, ...) has been created. It includes a default Debian installation with some important DebWrt cross-compiled packages installed. When you selected the option "Use qemu to perform Debian second stage install on the host" with menuconfig, second stage has already been done on the host using qemu. If not, follow these instructions:
    7272
    73 When using SSH, the post-install instructions will not appear. Therefore see the instructions below which come from debwrt/trunk/debian/rootfs/files/init.d/rcS.firstboot:
    74 
    75 {{{#!sh
    76 /bin/echo
    77 /bin/echo "Welcome to the DebWrt post installation!"
    78 /bin/echo
    79 /bin/echo "Press ctrl-d for normal boot. Use vim.tiny to edit files."
    80 /bin/echo
    81 /bin/echo "Note that both telnetd and sshd are running on: 192.168.1.1 and on 192.168.1.20."
    82 /bin/echo
    83 /bin/echo "Second stage install instructions:"
    84 /bin/echo
    85 /bin/echo "- /debootstrap/debootstrap --second-stage"
    86 /bin/echo "- rm -rf /var/cache/apt/archives"
    87 /bin/echo "- mkdir -p /var/cache/apt/archives/partial"
    88 /bin/echo "- echo \"deb http://ftp.debian.org/debian squeeze main\" >>/etc/apt/sources.list"
    89 /bin/echo "  OR"
    90 /bin/echo "- echo \"deb http://ftp.debian.org/debian sid main\" >>/etc/apt/sources.list"
    91 /bin/echo "- for Lenny: dpkg-reconfigure dash"
    92 /bin/echo
    93 /bin/echo " Don't execute these lines, these are a reminder for myself(amain) when preparing an DebWrt release:"
    94 /bin/echo "- rm -rf /lib/modules/*"
    95 /bin/echo "- rm -rf /lib/firmware/*"
    96 /bin/echo
    97 }}}
     73    * Flash the device with the compiled DebWrt kernel
     74    * Boot the device. It will boot in 'firstboot' mode.
     75    * Connect via a serial console or login via ssh or telnet ( device default IP's: eth0: 192.168.1.1, eth0.1: 192.168.1.20 )
     76    * Perform the PostInstall /usr/sbin/PostInstall ( which basically executes /debootstrap/debootstrap --second-stage )
    9877
    9978== Root filesystem image information ==