Tiny Core Base > TCB Tips & Tricks

Howto: Install tinycore linux on a mac mini

(1/5) > >>

1. In the mac os, install rEFIt (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[]=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:


..highlighting codec-1:
--- Code: ---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
--- End code ---

..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:


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:
--- Code: ---$ lspci
03:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)

--- End code ---

Using compat-wireless-2011-12-18.tar.bz2, there's no need of the patches mentioned in the link above, here's how:
--- Code: ---[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

--- End code ---

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:
--- Code: ---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
--- End code ---

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.


[0] Message Index

[#] Next page

Go to full version