Author Topic: Need cross compile tutorials.  (Read 9389 times)

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Need cross compile tutorials.
« Reply #15 on: February 28, 2020, 04:04:43 am »
Quote from: cain2pang
I think I find the key, I build kexec, kexecboot with klibc, and the size is correct now.
That's nice, have you also tried to boot it on the Z?

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

cain2pang

  • Newbie
  • *
  • Posts: 24
    • View Profile
Need cross compile tutorials.
« Reply #16 on: February 28, 2020, 09:33:54 pm »
Quote from: Varti
Quote from: cain2pang
I think I find the key, I build kexec, kexecboot with klibc, and the size is correct now.
That's nice, have you also tried to boot it on the Z?

Varti

I had tried but something works wrong, I'm still working on that.
Sharp Zaurus C3100 (Borzoi) running Arch Linux ARM.
GPD MicroPC running Manjaro XFCE.

cain2pang

  • Newbie
  • *
  • Posts: 24
    • View Profile
Need cross compile tutorials.
« Reply #17 on: March 03, 2020, 07:09:17 am »
Quote from: greguu
Attached the 4.14.18 kernel .config for void linux kexecboot and the initramfs. This should help you get going.
Source is same as https://github.com/greguu/linux-4.14.18-c3x00

Sorry, seems the config file is missed, can you reupload it?
Sharp Zaurus C3100 (Borzoi) running Arch Linux ARM.
GPD MicroPC running Manjaro XFCE.

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Need cross compile tutorials.
« Reply #18 on: March 03, 2020, 07:16:41 am »
Quote from: cain2pang
Quote from: greguu
Attached the 4.14.18 kernel .config for void linux kexecboot and the initramfs. This should help you get going.
Source is same as https://github.com/greguu/linux-4.14.18-c3x00

Sorry, seems the config file is missed, can you reupload it?
Do you mean the kexecboot.tar.gz attached to that post? I have successfully downloaded it, and I have seen it contains a .config and a initramfs.cpio.xz archive. Is the .config file the one you are searching for?

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

cain2pang

  • Newbie
  • *
  • Posts: 24
    • View Profile
Need cross compile tutorials.
« Reply #19 on: March 03, 2020, 09:52:59 am »
Quote from: Varti
Do you mean the kexecboot.tar.gz attached to that post? I have successfully downloaded it, and I have seen it contains a .config and a initramfs.cpio.xz archive. Is the .config file the one you are searching for?

Varti

Sorry, my mistake, I ignored the hidden file.
Sharp Zaurus C3100 (Borzoi) running Arch Linux ARM.
GPD MicroPC running Manjaro XFCE.

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 434
    • View Profile
    • http://github.com/greguu
Need cross compile tutorials.
« Reply #20 on: March 17, 2020, 03:23:39 am »
Quote from: cain2pang
I think I find the key, I build kexec, kexecboot with klibc, and the size is correct now.

Yes that is the way, use klibc or glibc and make sure to "strip" the binary, too.  I have not tried musl for kexecboot, but should also work
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)