~ ~ ~ phoebes macbook page ~ ~ ~

doing 9front r&d on the following:

macbook 4,1
- A1181 (EMC 2242)
- void linux boot dmesg
  - eg 'sudo dmesg > voidboot.txt'
- flashrom_info.txt
  - flashrom --verbose --programmer internal:laptop=force_I_want_a_brick >flashrom_info.log
- flashrom_read.txt
  - flashrom --verbose --programmer internal:laptop=force_I_want_a_brick --chip SST25VF016B --read rom.bin >flashrom_read.log 2>&1
- rom.bin
  - dumped rom from above process
- sudo lspci -vv
- sudo lspci -nn
- chipset notes:
  - ICH8M (PCI ID 8086:2815)
  - "SST flash chip "SST25VF016B" (2048 kB, SPI) mapped at physical address 0x00000000ffe00000."
  - northbridge
  - southbridge
- some boot failures:
  - image0.jpg
  - image1.jpg
- works:
  - multiboot 9pc64
- hardware work
  - usb bus driver maybe?
  - ethernet https://github.com/torvalds/linux/blob/master/drivers/net/ethernet/marvell/sky2.c


macbook 5,1
- arch linux boot dmesg
- a semi-success
- occasionally boots fine. often fails with ohci errors, see below
- some boot failures:
  - example of typical failure
  - example of it 'powering through' a potential failure:
    - example 1
    - example 2
- works:
  - efi boot bootx64.efi
  - trackpad (like 50% no multitouch)
  - usb mouse
  - keyboard
- doesn't:
  - framebuffer is reversing r/g channels or something? (endianness?)
  - ethernet (need to pilfer from openbsd nfe)
  - suspend/wake?
  - probably everything else
- devices of note:
  - NVIDIA Corporation MCP79 Ethernet (10de/0ab9)
  - Broadcom BCM4322 802.11a/b/g/n Wireless LAN Controller (14e4/432b)
- wish i could find:
  - firmware restoration cd 1.9

thus todo:
- investigate 5,1 occasional kernel panic
- fix framebuffer
- 5,1 ethernet driver
- 5,1 netboot
- 5,1 additional drivers:
  - to be populated
- 4,1 efi firmware upgrade w/o osx (?)
  - possible route: burn recovery disc to dvd see if that works? (maybe incoming thinkpad x220 has one)
- panda wireless pau05 driver (148f/5372)
  - rt2800usb




Never Give Up:
- ohci spec
  - sys/src/9/pc/usbohci.c
- nfe start point
  - sys/dev/pci/if_nfe.c (openbsd src)
  - sys/src/9/port/devether.c
- apple firmware pages
- the apple of your efi
- efi firmware updates