Tiny Core Linux
Tiny Core Base => TCB Tips & Tricks => Topic started by: Juanito on August 30, 2011, 06:16:58 AM
-
1. In the mac os, install rEFIt (http://refit.sourceforge.net/ (http://refit.sourceforge.net/)) to the mac hd main partition. Reboot and check that you now have the rEFIt menu on restart.
2. In the mac os, use the bootcamp advisor to create a partition for windows. In my case, I had to insert a windows boot dvd before before the process would start. After partitioning, the mac os tried to reboot and hung on restart - after cycling the power, the rEFIt menu came up.
3. Choose the rEFIt partition sync tool to sync the newly created windows partition between the mac gpt and mbr.
4. Insert a tinycore cd and reboot. Use the gparted extension to reformat the windows partition from fat32 to ext3 (I'm not sure rEFIt supports ext4). In my case, this was the 4th partition on the drive, sda4 - there are two hidden partitions that the mac os disk utility doesn't show you.
5. Reboot and use the rEFIt partition tool to sync the newly reformatted ext3 partition between gpt and mbr.
6. Reboot to the tiny core cd, use the grub-0.97-splash extension to install grub on the ext3 partition using the "set up grub" instructions here http://wiki.tinycorelinux.net/wiki:installing_tc_-_alternate_offline_guide?s (http://wiki.tinycorelinux.net/wiki:installing_tc_-_alternate_offline_guide?s)[]=grub
7. copy tinycore.gz and bzImage from the tinycore cd to the ext3 partition.
8. Reboot and use the rEFIt menu to boot tc from the mac mini hd
Edit: for clarity this is on a DMI: Apple Inc. Macmini5,3
-
In case anybody finds it useful I got the headphones/line out sound working using the hda_analyser from here:
http://www.alsa-project.org/main/index.php/HDA_Analyzer (http://www.alsa-project.org/main/index.php/HDA_Analyzer)
..highlighting codec-1: GPIO: io=4, o=0, i=0, unsolicited=0, wake=0
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[1]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0
IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[3]: enable=1, dir=1, wake=0, sticky=0, data=0, unsol=0
..where IO[1] data=1 turns headphones/line-out on and IO[3] data=1 turns the internal speaker on
Now to figure out how to make this more accessible ;)
hda_analyser screenshot added
-
As an aside, the macmini runs very nicely with micrcore64 and Xorg-7.6 in "confless" mode
-
I managed to get the wireless working using the instructions from here as a starting point:
http://www.ubuntubuzz.com/2011/10/macbook-pro-wireless-broadcom-bcm4331.html (http://www.ubuntubuzz.com/2011/10/macbook-pro-wireless-broadcom-bcm4331.html)
The mac mini has this as a wireless device, that is somehow also a bluetooth device(?). Broadcom's own driver doesn't support it(?!) and I haven't managed to get ndiswrapper to work with it: $ lspci
03:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)
Using compat-wireless-2011-12-18.tar.bz2, there's no need of the patches mentioned in the link above, here's how: [Prepare kernel source]
$ make mrproper
[copy tinycore config]
$ make oldconfig
$ make prepare
$ make modules_prepare
copy Module.symvers [saved from a full kernel compile you did earlier]
$ make SUBDIRS=scripts/mod
$ cd /lib/modules/3.0.3-tinycore[64]
$ sudo ln -s /usr/src/linux-3.0.3 build
$ cd ../compat-wireless-2011-12-18
$ make
$ sudo make install
$ cd ../b43-fwcutter-015
$ make
$ export FIRMWARE_INSTALL_DIR="/usr/local/lib/firmware"
$ sudo ./b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-wl-5.100.138/linux/wl_apsta.o
I then had to rmmod ssb and delete the bcma and ssb modules in the base in order to prevent the new b43 module from loading them instead of the new bcma and ssb modules compiled above.
After that load the firmware, modprobe the new b43 module and you're ready to go.
You should see something like this: sudo modprobe b43
$ lsmod
Module Size Used by Tainted: P
b43 290816 0
mac80211 172032 1 b43
cfg80211 122880 2 b43,mac80211
bcma 20480 1 b43
ssb 36864 1 b43
pcmcia 28672 2 b43,ssb
pcmcia_core 16384 1 pcmcia
$ dmesg
...
bcma-pci-bridge 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
bcma-pci-bridge 0000:03:00.0: setting latency timer to 64
Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
PMU resource config unknown for device 0x4331
Bus registered
cfg80211: Calling CRDA to update world regulatory domain
b43-phy0: Broadcom 4331 WLAN found (core revision 29)
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Broadcom 43xx driver loaded [ Features: PMNLS ]
b43-phy2: Loading firmware version 666.2 (2011-02-23 01:15:07)
wlan0: authenticate with c4:7d:4f:88:a9:b9 (try 1)
wlan0: authenticated
wlan0: associate with c4:7d:4f:88:a9:b9 (try 1)
wlan0: RX AssocResp from c4:7d:4f:88:a9:b9 (capab=0x431 status=0 aid=2)
wlan0: associated
wlan0: moving STA c4:7d:4f:88:a9:b9 to state 1
wlan0: moving STA c4:7d:4f:88:a9:b9 to state 2
wlan0: moving STA c4:7d:4f:88:a9:b9 to state 3
-
hi Juanito,
did you find a way to boot tinycore on macs, f.e. mac mini or macbook pro, with a live-usbstick?
in the moment my configuration boots and works on all usual pcs,
so i would appreciate to extend his config with the ability to boot macs, too.
is there a way to use the same configuration for both platforms side by side?
thank you for every hint and help.
-
I don't have a macbook pro, but as far as I know, you cannot boot a mac mini from usb stick
-
Macs require EFI bootable usb sticks, they don't work with the normal MBR ones. Once you have it set up right, it will show up in the boot menu (hold alt after pressing the power button).
-
hi curaga,
it depends...
on a actual macbook pro i can use just my vfat-formated usbstick, to enter a working grub-menue-environment.
i just installed GRUB2EFI-Bootloader as described in the ubuntu-forums and here www.produnis.de/blog/?p=678,
started with a pressed ALT-key and entered the usual boot-menue with three items:
the main harddisk, something like a virtual recovery-volume and my usbstick that is named as an efi-boot-medium, although it's just a plain vfat-formated usbstick with a normal boot-sektor and syslinux as my usual bootloader.
when i choose the efi-boot-medium, i can enter the grub-menue of the GRUB2EFI-Bootloader.
after choosing my tinycore-boot-entry the kernel is loaded with the error message that the grafic-card is unknown.
then the initrd is loaded and afterwards the system stops with a frozen cursor.
on a 4years-old mac-mini the efi-boot-menue offers only the main-harddisk, no recovery medium and the plugged-in usbstick is ignored. probably an installed rEFIt could offer more boot-items.
here i show you my grub.conf of the GRUB2EFI-Bootloader:
grub.conf
## grub.cfg pxw 20090909 22:00
menuviewer="text"
timeout=20
default=0
set F1=ctrl-x
set color_normal=yellow/red
menuentry "reboot from grub.cfg fat usb " {
reboot
}
menuentry "use /grub2.cfg" {
search --set -f /grub2.cfg
configfile /grub2.cfg
}
menuentry "OSX" {
search --set -f /usr/standalone/i386/boot.efi
chainloader /usr/standalone/i386/boot.efi
}
menuentry "core-current iso" {
fakebios
fix_video
search --set -f /iso/core-current.iso
loopback iso /iso/core-current.iso
linux (iso)/boot/vmlinuz from=/iso/core-current.iso ramdisk_size=6666 root=/dev/ram0 rw waitusb=5 protect restore=LABEL=tc tce=LABEL=tc/tce4 lst=onboot_fluxbox.lst vga=795 psmouse.proto=imps settime tz=CET-1CEST,M3.5.0,M10.5.0/3 laptop kmap=de mydata=core multivt
initrd (iso)/boot/core.gz
}
menuentry "core-current loop" {
fakebios
fix_video
search --set -f /iso/core-current.iso
loopback loop /iso/core-current.iso
linux (loop)/boot/vmlinuz iso-scan/filename=/iso/core-current.iso persistent video=efifb fbdev noefi waitusb=5 protect restore=LABEL=tc tce=LABEL=tc/tce4 lst=onboot_fluxbox.lst vga=795 psmouse.proto=imps settime tz=CET-1CEST,M3.5.0,M10.5.0/3 laptop kmap=de mydata=core multivt
initrd (loop)/boot/core.gz
}
menuentry "CD" {
appleloader CD
}
menuentry "MBR1" {
appleloader HD
}
menuentry "REBOOT" {
reboot
}
-
Without the bios emulation (boot camp), you need Xfbdev instead of Xvesa. Xorg may work too.
-
i guess my main problem is that the initrd isn't loaded proberly...
-
The harder Apple try to discourage or dare I say prevent anyone from booting Linux on their pc's. the harder we try to foil them..
64 bit version of tc might boot easier from what I read
;)
-
I don't have a macbook pro, but as far as I know, you cannot boot a mac mini from usb stick
Just discovered I was wrong - I left a tc usb stick inserted and on (re)boot I must have tabbed to the wrong rEFIt icon and it booted.
The usb stick was one of my standard extlinux ext2 boot ones and had not been modified in any way for mac.
-
But rEFIt was installed..? which can boot a fat partition?
-
rEFIt was not installed on the usb stick and the usb stick was formatted as a single ext2 partition. rEFIt is installed on an hfs+ partition (the second of the three partitions created by the mac os x installation).
Edit: and, for the purpose of clarity, I had not installed grub2-efi at the time I discovered rEFIt would boot tinycore from a usb stick.
One of the usb sticks I tried shows in rEFIt as a linux installation, the other as "legacy os" - perhaps this is connected with the version of syslinux used to set up the extlinux boot.
-
I gave grub-efi a try (via rEFIt) and it will boot tinycore, but the usb keyboard will not work.
Since the mac mini uses 64-bit efi, grub2 needs to be compiled like this: $ ./configure --prefix=/usr/local --with-platform=efi --target=x86_64
..and then make grub-efi as follows: $ x86_64-grub-mkimage -O x86_64-efi -d /usr/local/lib/x86_64-grub/x86_64-efi -o grub.efi -p "" part_gpt part_msdos hfsplus fat ext2 normal chain boot configfile linux multiboot pci lspci setpci usb_keyboard efi_gop ohci uhci usb video
To access the efi partition on the mac mini, I was obliged to borrow hfsprogs from debian in order to be able to mount the journalled hfs+ partition, then: $ sudo mount -o force /dev/sda2
$ sudo mkdir /mnt/sda2/efi/grub
$ sudo cp grub.efi /mnt/sda2/efi/grub
$ sudo cp /usr/local/lib/x86_64-grub/x86_64-efi/*.mod /mnt/sda2/efi/grub
$ sudo cp /usr/local/lib/x86_64-grub/x86_64-efi/*.lst /mnt/sda2/efi/grub
..and then copied this grub.cfg to /mnt/sda2/efi/grub: menuentry "core64" {
search --file --no-floppy --set=root /boot/vmlinuz64
fakebios
fix_video
setpci -s 00:1f.2 90.b=60 [suggestion from coreplayer2 to enable ahci mode for the hd]
linux /boot/vmlinuz64 root=/dev/sda4 quiet noswap tce=sda4 tz=GMT-4 host=macminitc syslog blacklist=bcma blacklist=ssb blacklist=b43 text
initrd /boot/core64.gz
}
..after all this, on reboot a new "3 coloured boxes" icon appears in rEFIt for grub2 and the mac mini boots but with a dead usb keyboard and the following error: udevadm settle - timeout of 5 seconds reached, the event queue contains:
/sys/bus/pci/drivers/sdhci-pci
The hd interface is very quick in ahci mode, I wonder if this might be the problem
-
For those looking to use a microphone with the mac mini...
There are two 3.5mm jack sockets on the back of the mac mini:
1. Line-out - three connections - stereo left out, stereo right out and microphone in.
2. Line-in - two connections - stereo left in and stereo right in.
Apparently (I didn't try it) you can use the ear bud/microphone combo supplied with an iPhone in the line-out socket - this is a pain, because it means you have to disconnect the powered speakers you would usually use in this socket.
The other option is to use line-in, but this only accepts a condensor microphone signal, which also requires a pre-ampifier.
A third option is to use an iRig PRE (see google for details) which functions as a pre-amp for condensor microphones for iPhone/iPad. This can be connected to the mac mini line-out socket and the "monitor/headphones" socket on the iRig PRE can be used to connect powered speakers - everything ends up connected to the line-out socket, but it all works.
One thing to beware of if using pulseaudio with the above (on my hardware it shows as "internal microphone") - pulseaudio assumes that the microphone supplies a stereo signal and locks the channels together - with a mono microphone, this has the effect of cancelling out the signal. In order for things to work, the channels need to be unlocked by clicking on the appropriate icon.
The result (as commented by the party at the other end) is very good quality audio with skype.
Edit: In case anybody is wondering, there's some kind of issue with the kernel that prevents a usb headset from working (apparently ongoing for a couple of years) and some other (ssp mode) issue that prevents a bluetooth headset from working (it used to work)
-
hi
I am lost again. Are there two holes or 5?
2) which model string did you try pls?
Based on your image ids I think you have only these strings as options?
Cirrus Logic CS4206/4207
========================
mbp55 MacBook Pro 5,5
imac27 IMac 27 Inch
auto BIOS setup (default)
3) and I assume you could not change the capture settings in alsamixer the image shows line in or mic (in)
(http://wiki.tinycorelinux.net/lib/exe/fetch.php?hash=201a95&w=400&h=300&media=http%3A%2F%2Fi54.tinypic.com%2F1zmm8as.jpg)
4) so you have powered speakers in the line out mic socket?
5) and for line in, I gather you have no mux showing in your alsamixer for mic volume up?
cheers
-
Hi Juanito!
I got my Core (4.7.1) installed WITHOUT rEFIt on a MacBook Air (mid2011) following these steps:
http://www.ubuntu.com/download/help/create-a-usb-stick-on-mac-osx
Of course, I replaced the Ubuntu image with the CorePlus image and it just works! Maybe it could be done on a MacMini too?
Now I'm still trying to config some drivers...
See'ya!
-
I am lost again. Are there two holes or 5?
The are two jack sockets, one (line out) with three contacts and one (line in) with two contacts.
2) which model string did you try pls?
I didn't try any model string as it is not implemented for the Intel CougarPoint HDMI
and I assume you could not change the capture settings in alsamixer the image shows line in or mic (in)
alsamixer shows < Line > Mic S/PDIF Capture Internal Mic Rear Mic
4) so you have powered speakers in the line out mic socket?
I have the iRig PRE in the line out socket and the powered speakers connected to the monitor/headphones socket of the iRig PRE
-
There appears to be an issue with your ids then?
so using the ids showing in uploaded image first page I get ids 10134206:106b2100
I can't spot them in http://www.linux-usb.org/usb.ids
and alsa info for the macmini 5,3 appears lacking
http://mac.linux.be/content/hd-audio-models-alsa-macs
when I googled "alsa 10134206:106b2100"
yours it the first hit but I looked at the second hit
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/892697
not knowing you had a CougarPoint you might be interested in the revision number showing in my uploaded image or your image
00100302
we have a match of ids and revision number my above link (according to my eyesight)
Mixer name : 'Cirrus Logic CS4206'
Components : 'HDA:10134206,106b2100,00100302'
that explains why I posted the wrong card id
sorry about that
EDIT I can't remember what my first google search was in my earlier post
-
I got my Core (4.7.1) installed WITHOUT rEFIt on a MacBook Air (mid2011) following these steps
There's a whole thread on the subject here:
http://forum.tinycorelinux.net/index.php/topic,13445.0.html