LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-04-2020, 12:57 PM   #1
xenon360linux
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Rep: Reputation: Disabled
Custom Kernel, Custom Loader


Hello world,

Long time reader, first time poster here. I’ve been working to compile the latest Linux kernel for the PowerPC64 big endian Xenon platform - the Xbox 360. I have a functioning cross compiler which can generate executable ELFs, loader by a customer loader. This loader, the XeLL or Xenon Linux Loader, as the name suggests is capable of loading a Linux kernel into memory and executing it.

When I use cross-objdump to compare my kernel to the last known-working 360 linux kernel, I get identical outputs in regards to the elf32 format and the same entry point. I’ve built a PowerPC Ubuntu image to test with, and imported my kernel and updated the initramfs via QEMU. When I attempt to load my kernel however, I get an error stating the rootfs could not be found. The kernel attempts to tell me what the available partitions are, but none are listed even though I have a drive connected and it seems to be recognized looking at the kernel debug output.

Not sure where else to turn. It seems silly that I’ve been able to cross compile and successfully execute the latest kernel, but I can’t get the dang rootfs problem solved! Any help would be greatly appreciated! Let me know if kernel debug output needs to be garnished.
 
Old 02-05-2020, 10:13 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Failure to find the root filesystem suggests a driver problem to me. You need to have available the scsi driver, the ahci driver for sata drives, and the appropriate driver for your root filesystem. They should all be on your initramfs and the initramfs driver built in.
 
2 members found this post helpful.
Old 02-05-2020, 11:38 AM   #3
xenon360linux
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello Hazel,

Thanks for your reply! That makes sense to me. It seems I’ve made a silly mistake as I expected. I do in fact have a SATA driver patched for the Xenon platform. I am however trying to boot from a USB had disk, which evidentially I do not have a driver enabled for. I trimmed a great deal of drivers and functionality while configuring the kernel, as the config file I started from was created some years ago for kernel 3.5.

I’ll relocate my distribution to a SATA hard disk tonight and attempt to boot from it. This should confirm the driver I’m using for the SATA is functioning, and I’ll go from there and report results.

Edit note: I do see the kernel debug output recognize the usb disk with an sd prefix. However, booting an old Ubuntu 10.10 livecd image with a 2.x kernel from the same usb disk reports dready errors. It’s a Walmart special usb hard disk, highly possible it doesn’t play nice with Linux in general.

Thanks again!

Last edited by xenon360linux; 02-05-2020 at 11:44 AM. Reason: Added note
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to remove ubuntu boot loader and use windows boot loader RUshabh55 Linux - Newbie 9 11-29-2009 07:01 PM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM
How to change my Grub Loader to Lilo loader in REDHAT LINUX 9.0 skumar.v Linux - Newbie 3 04-04-2008 10:38 AM
replace lilo loader with windows loader Mickaletto Linux - Newbie 9 11-25-2005 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration