https://github.com/andreicherniaev/buildroot_x86_libv4l_glibc_64bit_time
test buildroot with glibc and BR2_TIME_BITS_64
https://github.com/andreicherniaev/buildroot_x86_libv4l_glibc_64bit_time
buildroot example
Last synced: 6 months ago
JSON representation
test buildroot with glibc and BR2_TIME_BITS_64
- Host: GitHub
- URL: https://github.com/andreicherniaev/buildroot_x86_libv4l_glibc_64bit_time
- Owner: AndreiCherniaev
- License: apache-2.0
- Created: 2024-11-03T11:46:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T02:28:50.000Z (over 1 year ago)
- Last Synced: 2025-01-31T19:42:42.830Z (over 1 year ago)
- Topics: buildroot, example
- Language: Makefile
- Homepage: https://gitlab.com/buildroot.org/buildroot/-/issues/62
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
How to build Linux image based on qemu_x86_defconfig but with libv4l while glibc's BR2_TIME_BITS_64 is enabled.
## Compare with pc_x86_64_bios_defconfig
Config [qemu_x86_libv4l_BR2_TIME_BITS_64_defconfig](my_external_tree/configs/qemu_x86_libv4l_BR2_TIME_BITS_64_defconfig) is based on [qemu_x86_defconfig](https://github.com/buildroot/buildroot/blob/e82217622ea4778148de82a4b77972940b5e9a9e/configs/qemu_x86_defconfig).
## Clone
```
git clone --remote-submodules --recurse-submodules -j8 https://github.com/AndreiCherniaev/buildroot_x86_libv4l_glibc_64bit_time.git
cd buildroot_x86_libv4l_glibc_64bit_time
```
## Make image
```
make clean -C buildroot
make BR2_EXTERNAL=$PWD/my_external_tree -C $PWD/buildroot qemu_x86_libv4l_BR2_TIME_BITS_64_defconfig
make -C buildroot
```
## Save non-default buildroot .config
To save non-default buildroot's buildroot/.config to $PWD/my_external_tree/configs/f2fs_qemu_x86_defconfig
```
make -C $PWD/buildroot savedefconfig BR2_DEFCONFIG=$PWD/my_external_tree/configs/qemu_x86_libv4l_BR2_TIME_BITS_64_defconfig
```
## Start in QEMU
This code is based on emulation [script1](https://github.com/buildroot/buildroot/blob/02540771bccf7b10c7daecce5f0e1e41a73c1e07/boot/grub2/readme.txt#L4) and [script2](https://github.com/buildroot/buildroot/blob/9e3d572ff532df945fbc282fed22d10098e5718b/board/pc/readme.txt), run the emulation with:
```
qemu-system-i386 -M pc -drive file=output/images/disk.img,if=virtio,format=raw -net nic,model=virtio -net user
```
Note: image file `Buildroot.img` is located outside of repo folder so we use `../`. Optionally add `-nographic` to see output not in extra screen but in console terminal. Or `-display curses` to pseudographic.
## Problems
```
output/host/i686-buildroot-linux-gnu/sysroot/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
```
see `build.log`