Jump to content

Photo

Using Genkernel: Custom Initramfs

funtoo boot from sd card required genkernel steps

8 replies to this topic

#1
shiggitay

shiggitay

    Newbie

  • Members
  • Pip
  • 7 posts

Hey all. I've been messing with my Intel BayTrail (Atom-based Z3740D CPU) tablet trying to get it to boot and properly run Funtoo Linux. I've gotten it to boot actually but now I decided I want to dual boot Funtoo and Windows 8.1. I have Windows on the internal flash (NAND) and it boots up fine, but I'd also like to have Funtoo as an option as well. There's one catch: I have it installed on a 16 GB microSD card. I assume I'd need an initramfs with the proper parameters/drivers/modules to tell the kernel where the root partitions for Funtoo is etc. I know what modules I'd need to get it working, but I don't know how to tell genkernel to generate an initramfs image with the right device path in /dev, and the required modules to load as the initramfs loads up.

 

Is anyone up to the task of helping me out?

 

Thanks,

Shiggitay



#2
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 376 posts

output of fdisk, content of /etc/fstab, custom, what bootloader and its config?


www.funtoo.org

#3
shiggitay

shiggitay

    Newbie

  • Members
  • Pip
  • 7 posts
^ ^ ^
fdisk and fstab pastes.
 
I'm using Grub2 as my bootloader. That works fine as it's booting from the onboard tablet NAND storage (/dev/mmcblk0p1)
 
 What 'custom' and 'configs' do you want to see? /etc/boot.conf? Let me know and I'll post them for you. :)


#4
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 376 posts

according to fstab, your swapfile and root are on same partition, which make it impossible to boot.


www.funtoo.org

#5
666threesixes666

666threesixes666

    Advanced Member

  • Members
  • PipPipPip
  • 129 posts

sorry i wasn't feeling good last night shiggitay....  yeah your fstab is messed up.  swap can be a file or a partition.  your configs set for partition mode so it would need another partition or set to file mode....  arch has good documentation on setting up a swap file if you're pinned into moving that way rather than re-partitioning.

 

https://bpaste.net/show/6879b47aeb6e

 

i use a swap file on my root partition located @ /swap


Duke: No more of that talk or I'll put the f*cking leeches on you, understand?

 

Paul: [about Percy] The man is mean and careless and stupid, and that's a bad combination in a place like this.


#6
shiggitay

shiggitay

    Newbie

  • Members
  • Pip
  • 7 posts

sorry i wasn't feeling good last night shiggitay....  yeah your fstab is messed up.  swap can be a file or a partition.  your configs set for partition mode so it would need another partition or set to file mode....  arch has good documentation on setting up a swap file if you're pinned into moving that way rather than re-partitioning.

 

https://bpaste.net/show/6879b47aeb6e

 

i use a swap file on my root partition located @ /swap

 

Okay... point made, but that's not quite my issue... I'm trying to boot up from an SD Card, and from what I know you need an initramfs to load up before the kernel can with the proper mmc_core etc drivers. THAT'S what I'm asking for help with.



#7
digifuzzy

digifuzzy

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationCanada
shiggitay: do you do the lsmod diff like we talked about on IRC?

#8
shiggitay

shiggitay

    Newbie

  • Members
  • Pip
  • 7 posts

shiggitay: do you do the lsmod diff like we talked about on IRC?

 

No.. Who are you on iRC?



#9
shiggitay

shiggitay

    Newbie

  • Members
  • Pip
  • 7 posts

Mmkay so can anyone help me with this?

 

https://www.dropbox....114905.mp4?dl=0





Reply to this topic



  



Also tagged with one or more of these keywords: funtoo, boot from sd card, required genkernel steps

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users