blob: 75d07377aa7f4b6929bfe0d56651c1df325bf7a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#@TYPE: Machine
#@NAME: GCW Zero
#@DESCRIPTION: Machine configuration for the Game Consoles Worldwide (GCW) Zero
DEFAULTTUNE = "mips32r2el"
require conf/machine/include/mips/tune-mips32r2.inc
# Factory default are RO images: add following line to your target image
# IMAGE_FEATURES += "read-only-rootfs"
IMAGE_FSTYPES ?= "tar.gz squashfs squashfs-xz"
INITRAMFS_FSTYPES = "cpio.gz cpio.xz"
PREFERRED_PROVIDER_virtual/kernel = "linux-gcw0"
# ELF for kexec (kernel to be put in /boot)
KERNEL_IMAGETYPE = "vmlinuz"
# RAW for ubiboot (only for linux-gcw0-kexecboot)
#KERNEL_IMAGETYPE = "vmlinuz.bin"
MACHINE_GUI_CLASS = "smallscreen"
MACHINE_DISPLAY_WIDTH_PIXELS = "320"
MACHINE_DISPLAY_HEIGHT_PIXELS = "240"
MACHINE_FEATURES = "apm alsa usbhost usbgadget wifi screen qvga vfat ext2"
# Install kernel and symlink in /boot
MACHINE_ESSENTIAL_EXTRA_RDEPENDS:append = " kernel-base kernel-image"
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
# Install /boot/boot.cfg in target images and formfactor (psplash checks rotatio
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS:append = " kexecboot-cfg formfactor"
SERIAL_CONSOLE = "57600 ttyS2"
CMDLINE = "console=ttyS2,57600n8 console=tty0 rfkill.default_state=0"
# dmesg 3.12
# Kernel command line: mem=0x0100M mem=0x0100M@0x30000000 fbcon=bind:0 hwvariant=v20_mddr_512mb panic=5 console=ttyS2,57600 console=tty0 boot=/dev/mmcblk0p1 loop0=/boot/rootfs.squashfs root=/dev/loop0 rfkill.default_state=0
# mininit as init
#CMDLINE = "panic=5 console=ttyS2,57600 console=tty0 boot=/dev/mmcblk0p1 loop0=/boot/rootfs.squashfs root=/dev/loop0 rfkill.default_state=0"
#https://github.com/pcercuei/mininit
#This simple program permits to use a romfs/squashfs image as the root filesystem of a linux system.
#You will need to specify three parameters on the kernel command line:
#- 'boot=X' where X is a comma-separated list of the possible locations for the filesystem on which is stored the image;
#- 'loop0=X' where X is the path to the image (e.g. /boot/rootfs.bin);
#- 'root=/dev/loop0' which defines the loopback mount as being the root file system.
|