https://github.com/xboxdev/xbox-linux-initramfs
initramfs for xbox-linux
https://github.com/xboxdev/xbox-linux-initramfs
xbox-linux
Last synced: 11 months ago
JSON representation
initramfs for xbox-linux
- Host: GitHub
- URL: https://github.com/xboxdev/xbox-linux-initramfs
- Owner: XboxDev
- License: gpl-2.0
- Created: 2018-07-04T00:17:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T00:19:33.000Z (over 7 years ago)
- Last Synced: 2025-04-23T21:44:31.723Z (11 months ago)
- Topics: xbox-linux
- Language: Shell
- Homepage:
- Size: 2.65 MB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `initramfs` for [xbox-linux](https://github.com/XboxDev/xbox-linux)
`initramfs` is an optional root filesystem for the Linux kernel.
See [`ramfs-rootfs-initramfs.txt`](https://github.com/XboxDev/xbox-linux/blob/master/Documentation/filesystems/ramfs-rootfs-initramfs.txt#L86) for more information.
## Dependencies
* A working `xz` compressor with a `crc32` integrity check option.
## Building
* `$ cd xbox-linux-initramfs/`
* `$ ./build-initramfs.sh`
## Execution
* Use built `initramfs` in Cromwell.
Cromwell 2.40 can load a `initramfs` along with the kernel. See included [`linuxboot.cfg`](https://github.com/XboxDev/xbox-linux-initramfs/blob/master/linuxboot.cfg) that is used with Cromwell.
Upon kernel boot, the [`init`](https://github.com/XboxDev/xbox-linux-initramfs/blob/master/initramfs-xbox/init) script will listen for a key press for 5 seconds to launch an interactive shell, if a keyboard is attached to the Xbox via a [Xbox-to-USB conversion cable](http://xboxdevwiki.net/Xbox_Input_Devices#USB_Adapters). If `noswitchroot` is added as a kernel parameter in [`linuxboot.cfg`](https://github.com/XboxDev/xbox-linux-initramfs/blob/master/linuxboot.cfg), you will have immediate access to the interactive shell.