Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] gentoo boot error via usb while OK via SATA
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 119
Location: JiangSu,China

PostPosted: Tue Jan 02, 2018 6:35 am    Post subject: [Solved] gentoo boot error via usb while OK via SATA Reply with quote

hi,
I install gentoo in a msata ssd, cruial M550, and use a msata2sata keyset.
it works well.
and yesterday I bought a msata2usb3.0 keyset and put the M550 msata ssd into it, I want to boot from usb.
but it boot error, I don't know why?
my computer support boot from usb, and the ubuntu offical image boot correctly.


the error message to boot from msata2usb keyset:
Code:

-------------------------------[ cut here ]-------------------------

WARNING: CPU1 PID 1 at arch/x86/kernel/smp.c 128 native_smp_send_reschedule+0x32.....
Modules linked in:
CPU1 PID 1 Comm swapper/0 Not tainted 4.12.12-gentoo

Hardware name: lenove qitian.....
task:ffff88011b0f........
RIP.....
RSP......
RAX....
RDX.....
....
....


Call Trace
<IRQ>
trigger_load_balance+0x....
scheduler_tick+...
tick_shced_do_timer...
update_process_times.....

.....
.....
local_apic_timer_interrupt...
smp_apic_timer_intertupt...
apic_timer_interrupt...
RIP...
RSP...
RAX...
RDX...
....
....
</IRQ>
?printk
mount_block_root
set_debug_rodata
mount_root
prepare_namespace
kernel_init_freeable
?rest_init
kernel_init
ret_from_fork
Code: 0f a3 05 aa......

----[ end trace cdc7... ] ---


I had this only ssd on my desktop, what is the difference between booting from sata using msata2sata keyset and booting from usb using msata2usb keyset ?
my msata2usb3.0 keyset use asm 1153e chip. is there any more configurations in kernel that need to enable to support that?
thank you


Last edited by double_crane on Fri Jan 12, 2018 9:31 am; edited 1 time in total
Back to top
View user's profile Send private message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 119
Location: JiangSu,China

PostPosted: Tue Jan 02, 2018 8:37 am    Post subject: Reply with quote

above is booting without initramfs.

now I tried to use genkernel to generate kernel and initramfs, and it can boot correctly partly,
that is, when boot with initramfs, it print:

Code:

.........
.........
.........
[0.807220] Freeing unused kernel memory: 404k
[0.809728] Freeing unused kernel memoryL 1084k
>>Activated mdev
>>Loading Modules
    :: Loading from pata:
    :: Loading from sata:
    :: Loading from scsi:
    :: Loading from usb:
    :: Loading from firmware:
    :: Loading from waitscan:
    :: Loading from dmraid:
    :: Loading from mdadm:
    :: Loading from fs:
    :: Loading from net:
    :: Loading from iscsi:
    :: Loading from crypto: cbc aes-x86_64 xts
>> Determining root device ...
!! Could not find the root block device in UUID=f........
!! Please specify another value or:
!! - press enter for the same
!! - type shell for a shell
!! - type q to skip

root block device (UUID=xxxxx) ::


I type "/dev/sda1", and then it can boot up.
I try to replace root=UUID=xxxxx with root=/dev/sda1 in grub.cfg, but no use,
it still print "Could not find the root block device in /dev/sda1"
and I still need to print "/dev/sda1" manually.

it seems that devtmpfs hasn't make dev inode for the usb device when mount root time ?

how to solve this, to skip printing root_device_name at every boot time?

thank you
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Tue Jan 02, 2018 11:32 am    Post subject: Reply with quote

kernel may need few time to discover the usb device, so when you boot with /dev/sda1 device is still not there and you get the error, but when you type /dev/sda1, the device has appears and it work.
See NeddySeagoon answer there
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Tue Jan 02, 2018 11:50 am    Post subject: Reply with quote

double_crane,

If you use root=PARTUUID= then no initrd is required.
blkid will tell you your PARTUUIDs.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 119
Location: JiangSu,China

PostPosted: Fri Jan 12, 2018 9:30 am    Post subject: Reply with quote

krinn wrote:
kernel may need few time to discover the usb device, so when you boot with /dev/sda1 device is still not there and you get the error, but when you type /dev/sda1, the device has appears and it work.
See NeddySeagoon answer there



I set rootdelay=1, it fails to boot and when set rootdelay>=2, it works.

thank you very much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum