mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
3.0 KiB

  1. Introduction
  2. ------------
  3. This configuration offers a cross-build of (a subset of) the build-bootstrap
  4. package selection for the mips64 architecture (Malta machines with a 20Kc CPU)
  5. as emulated by qemu-system-mips64.
  6. It includes support for all the hardware emulated by qemu, a working udev,
  7. kernel and userland support for TCP/IP networking, and more.
  8. With qemu and the resulting build you can at least:
  9. - boot the kernel and first stage initrd,
  10. - execute a shell from the initrd,
  11. - mount NFS file systems,
  12. - load the second stage from a CD-ROM or a HTTP server,
  13. - and install packages from the CD on a hard disc.
  14. The packages included should be sufficient for native builds on the targeted
  15. platform.
  16. Quick Start
  17. -----------
  18. - Direct boot with serial console:
  19. qemu-system-mips64 -cdrom bbs-mips-malta-qemu_cd1.iso -hda /srv/qemu.hda \
  20. -kernel build/bbs-mips64-malta-qemu-TRUNK-mips-64-EB-mips64-cross-generic-expert/boot/vmlinux \
  21. -initrd build/bbs-mips64-malta-qemu-TRUNK-mips-64-EB-mips64-cross-generic-expert/ROCK/target-finish/initrd.img \
  22. -append "console=ttyS0 root=/dev/ram0" -nographic -M malta
  23. Hints And Known Bugs
  24. --------------------
  25. - To use the CD image in qemu, create it after the build has finished:
  26. ./scripts/Create-ISO bbs-mips64-malta-qemu bbs-mips64-malta-qemu
  27. - To use a hard disk in qemu, create it with e.g.:
  28. qemu-img create /srv/qemu.hda 2048M
  29. - The kernel and initrd image can also be found in the boot/ directory of the
  30. CD-ROM image.
  31. - When using a console on the serial port, be sure to enter 'ttyS0' as the
  32. terminal device in boot stage 2, or you won't get to see the command line.
  33. Enter 'tts/0' to also set the baud rate of the serial port.
  34. - To access HTTP or NFS servers in qemu, add the following options:
  35. -net nic -net tap
  36. You need root privileges for this, or have your system administrator set it
  37. up for you. When qemu starts it will create a network interface (tap0) on the
  38. host system and add an IP address/netmask (172.20.0.1/16) to it:
  39. host:/# ip addr show dev tap0
  40. 19: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500
  41. link/ether 00:ff:e1:75:9a:a0 brd ff:ff:ff:ff:ff:ff
  42. inet 172.20.0.1/16 brd 172.20.255.255 scope global tap0
  43. inet6 fe80::2ff:e1ff:fe75:9aa0/64 scope link
  44. valid_lft forever preferred_lft forever
  45. In the first boot stage of the emulated system, execute a shell, set up the
  46. network link and add an IP address on the same network:
  47. sh-3.2# ip link set up dev eth0
  48. [ 41.026595] eth0: link up
  49. sh-3.2# ip addr add 172.20.0.20/16 dev eth0
  50. You should now be able to reach the host system:
  51. sh-3.2# ping -c3 172.20.0.1
  52. PING 172.20.0.1 (172.20.0.1): 56 octets data
  53. 64 octets from 172.20.0.1: icmp_seq=0 ttl=64 time=16.7 ms
  54. 64 octets from 172.20.0.1: icmp_seq=1 ttl=64 time=1.6 ms
  55. 64 octets from 172.20.0.1: icmp_seq=2 ttl=64 time=1.1 ms
  56. --- 172.20.0.1 ping statistics ---
  57. 3 packets transmitted, 3 packets received, 0% packet loss
  58. round-trip min/avg/max = 1.1/6.4/16.7 ms