Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typo korrigiert

...

Panel

$ dd if=/dev/zero of=rpi-hd.img bs=1048576 count=64<ENTER>
64+0 Datensätze ein
64+0 Datensätze aus
67108864 Bytes (67 MB) kopiert, 0,93694 s, 71,6 MB/s
$

 

Dann müssen wir eine Partition anlegen. Dies kann man z.B. via fdisk erledigen:

...

Panel

$ sudo mkfs -t vfat /dev/loop0p1<ENTER>
mkfs.fat 3.0.26 (2014-03-07)
unable to get drive geometry, using default 255/63
$ mkdir rpi
<ENTER>
$ sudo mount /dev/loop0p1 rpi<ENTER>
$ sudo cp -a config/build/{rc.cfg,kernel,ro<ENTER>otfsrootfs.img,opt.img} rpi/<ENTER>
$ sudo umount rpi<ENTER>
$

...

Panel

$ qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "console=ttyAMA0,115200 console=tty1 panic=1 load_ramdisk=1" \
  -initrd config/build/rootfs.img -hda rpi-hd.img -netdev bridge,id=net0,br=br0 -net nic,netdev=net0
<ENTER>
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.26+ (shift@Shift-PC) (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) ) #2 Fri Jan 17 22:13:59 EST 2014
CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
CPU: VIPT aliasing data cache, unknown instruction cache
Machine: ARM-Versatile PB
[...]

Fertig!

Screenshots

Image ModifiedImage Modified

Image Added

Image Added

Image Added

Anhang A: Gentoo-Netzwerk-Konfiguration

...

Panel

 

$ /sbin/brctl show br0
bridge name     bridge id               STP enabled     interfaces
br0             8000.0025226c68f4       no              enp0s10
                                                        tap0

Anhang B: Die komplette fli4l-Konfiguration

Die folgende Konfiguration kann als Grundlage für ein _fli4l.txt-Overlay herangezogen werden.

Panel

#
# package 'base'
#
HOSTNAME='swing'
PASSWORD='...'
KERNEL_VERSION='3.19.6'
POWERMANAGEMENT='none'
BEEP='no'
NET_DRV_N='0'
IP_NET_N='1'
IP_NET_1='{dhcp}'
IP_NET_1_DEV='eth0'
DOMAIN_NAME='lan'
DNS_FORWARDERS='8.8.8.8'
OPT_SYSLOGD='yes'
SYSLOGD_DEST_N='2'
SYSLOGD_DEST_1='*.*;kern.!* /var/log/syslog'
SYSLOGD_DEST_2='kern.* /var/log/kern.log'
OPT_KLOGD='yes'

#
# package 'dns_dhcp'
#
OPT_DHCP_CLIENT='yes'

#
# package 'httpd'
#
OPT_HTTPD='yes'
HTTPD_USER_N='0'

#
# package 'chrony'
#
OPT_CHRONY='yes'
CHRONY_TIMESERVER_N='1'
CHRONY_TIMESERVER_1='fence.schulz.ip-v6.eu'

#
# package 'sshd'
#
OPT_SSHD='yes'

#
# package 'circuits'
#
CIRC_N='1'
CIRC_1_NAME='dhcp'
CIRC_1_ENABLED='yes'
CIRC_1_TYPE='dhcp'
CIRC_1_UP='yes'
CIRC_1_USEPEERDNS='yes'
CIRC_1_DHCP_DEV='IP_NET_1_DEV'
CIRC_1_NETS_IPV4_N='1'
CIRC_1_NETS_IPV4_1='0.0.0.0/0'