WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Booting without SATA controller?  (Read 3896 times)

Offline NotoriousPyro

  • Newbie
  • *
  • Posts: 11
Booting without SATA controller?
« on: February 24, 2011, 05:55:49 AM »
Hi,

I have a partially dead NAS here and I already have it's replacement. But for the old one I want to know is there any way to boot TCL without SATA controllers? Those are the only thing stopping TCL from booting (or any other Linux kernel with SATA support for that matter).

Cheers in advance :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Booting without SATA controller?
« Reply #1 on: February 24, 2011, 08:09:47 AM »
1. PATA controller
2. USB controller
3. PXE

Offline NotoriousPyro

  • Newbie
  • *
  • Posts: 11
Re: Booting without SATA controller?
« Reply #2 on: February 24, 2011, 11:24:29 AM »
I'm not sure I follow... Do you mean try those to boot from? That won't work because the kernel is trying to configure the SATA controllers and that is where it fails.

I am trying to boot from a USB key and it freezes when it gets to the SATA drive detection.

I need to bypass this somehow.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Booting without SATA controller?
« Reply #3 on: February 24, 2011, 12:59:44 PM »
Hi NotoriousPyro
You need to enable debugging messages to the console to try to find out which mem/io
addresses the SATA is using. Then try using the "reserve" bootcode to tell the kernel
to ignore them. I think the "ignore_loglevel" bootcode might get you those messages
but I'll defer to someone else on that point.

 [EDIT]: earlyprintk=vga and debug are the other codes you want.
« Last Edit: February 24, 2011, 01:17:22 PM by Rich »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Booting without SATA controller?
« Reply #4 on: February 24, 2011, 01:22:19 PM »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline NotoriousPyro

  • Newbie
  • *
  • Posts: 11
Re: Booting without SATA controller?
« Reply #5 on: February 24, 2011, 03:45:15 PM »
Hi NotoriousPyro
You need to enable debugging messages to the console to try to find out which mem/io
addresses the SATA is using. Then try using the "reserve" bootcode to tell the kernel
to ignore them. I think the "ignore_loglevel" bootcode might get you those messages
but I'll defer to someone else on that point.

 [EDIT]: earlyprintk=vga and debug are the other codes you want.

Those don't seem to be doing anything, or maybe I'm doing it wrong? ;D

At the moment I'm having trouble just booting the USB key, I've edited isolinux.cfg and syslinux.cfg to read:
Code: [Select]
label microcore
kernel /boot/bzImage
append ignore_loglevel earlyprintk=vga initrd=/boot/microcore.gz

Though the output looks exactly the same... It reads (before it freezes):
Code: [Select]
ata1: SATA link down (SStatus 0 SControl 300)
ata5: SATA link down (SStatus 0 SControl 300)
usb 1-1: new high speed USB device using ehci_hcd and address 2
ata2: SATA link down (SStatus 0 SControl 300)

I've tried leaving it to boot itself and it seemed to get further (up to all the coloured text showing boot was virtually complete) yet it freezes shortly after "Done."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Booting without SATA controller?
« Reply #6 on: February 24, 2011, 06:18:21 PM »
Hi NotoriousPyro
Try reserve=0x300,8 and see what happens.

Offline NotoriousPyro

  • Newbie
  • *
  • Posts: 11
Re: Booting without SATA controller?
« Reply #7 on: February 26, 2011, 09:06:35 AM »
Not sure if it's doing anything, perhaps I'm entering it in the wrong place? I know where to enter that stuff on Ubuntu but not on here - the boot screen seems a lot different.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Booting without SATA controller?
« Reply #8 on: February 26, 2011, 09:48:53 AM »
Hi NotoriousPyro
Add it to the append line. I'm guessing by the output you posted that the SATA
controller is at port address 300 so this command tells the kernel to keep it's
hands off of 300-307. Look for changes in the kernel messages, or post them.


Offline NotoriousPyro

  • Newbie
  • *
  • Posts: 11
Re: Booting without SATA controller?
« Reply #9 on: February 26, 2011, 06:38:33 PM »
I have done but it doesn't seem to do anything... My syslinux.cfg looks like this at the moment:

Code: [Select]
DEFAULT /boot/bzImage
APPEND initrd=/boot/microcore.gz reserve=0x300,8 --
LABEL microcore
  KERNEL /boot/bzImage
  APPEND initrd=/boot/microcore.gz reserve=0x300,8 --
DISPLAY boot.msg
TIMEOUT 300
PROMPT 1
F1 boot.msg
F2 f2
F3 f3
F4 f4

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Booting without SATA controller?
« Reply #10 on: February 26, 2011, 07:04:53 PM »
Hi NotoriousPyro

DISPLAY boot.msg
DEFAULT microcore
LABEL microcore
KERNEL /boot/bzImage
APPEND initrd=/boot/microcore.gz reserve=0x300,8 ignore_loglevel earlyprintk=vga
PROMPT 1
TIMEOUT 300
F1 boot.msg
F2 f2
F3 f3
F4 f4

Post the last few lines if it still freezes.


Offline NotoriousPyro

  • Newbie
  • *
  • Posts: 11
Re: Booting without SATA controller?
« Reply #11 on: February 27, 2011, 10:20:13 AM »
Same result mate:
Code: [Select]
ata1: SATA link down (SStatus 0 SControl 300)
ata5: SATA link down (SStatus 0 SControl 300)
usb 1-1: new high speed USB device using ehci_hcd and address 2
ata2: SATA link down (SStatus 0 SControl 300)
:'(

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Booting without SATA controller?
« Reply #12 on: February 27, 2011, 10:29:39 AM »
Have you tried disabling the drives in the BIOS?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Booting without SATA controller?
« Reply #13 on: February 27, 2011, 12:56:59 PM »
Hi NotoriousPyro
Post the 10 lines just prior to the link down message.

Offline NotoriousPyro

  • Newbie
  • *
  • Posts: 11
Re: Booting without SATA controller?
« Reply #14 on: February 28, 2011, 09:15:14 AM »
Have you tried disabling the drives in the BIOS?
Unfortunately, they can't be disabled through the BIOS since it is a QNAP NAS.
Hi NotoriousPyro
Post the 10 lines just prior to the link down message.
I'll post all of what is on screen at the time of boot...
Code: [Select]
usbcore: registered new interface driver ums-usbat
usbcore: registered new interface driver berry_charge
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
usbcore: registered new interface driver appletouch
usbcore: registered new interface driver bcm5974
cpuidle: using governor ladder
cpuidle: using governor menu
padlock: VIA PadLock not detected.
padlock: VIA PadLock Has Engine not detected.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Using IPI No-Shortcut mode
ata1: SATA link down (SStatus 0 SControl 300)
ata5: SATA link down (SStatus 0 SControl 300)
usb 1-1: new high speed USB device using ehci_hcd and address 2
ata2: SATA link down (SStatus 0 SControl 300)