Saturday, August 8, 2009

FreeBSD 7.2 on my Samsung NC10-14GB

Everything working well so far. To get X working I read a lot of forums and ML archives. To get the 915resolution tool, from ports, working with the 945GME chipset in this netbook, I had to patch a couple of files...

# diff -ruN 915resolution.c.orig 915resolution.c
--- 915resolution.c.orig 2009-08-08 22:51:00.000000000 +0000
+++ 915resolution.c 2009-08-08 22:53:44.000000000 +0000
@@ -57,12 +57,12 @@
typedef unsigned int cardinal;

typedef enum {
- CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
+ CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, CT_945GME,
CT_946GZ, CT_G965, CT_Q965
} chipset_type;

char * chipset_type_names[] = {
- "UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
+ "UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", "945GME",
"946GZ", "G965", "Q965"
};

@@ -216,6 +216,10 @@
type = CT_945GM;
break;

+ case 0x27ac8086:
+ type = CT_945GME;
+ break;
+
case 0x29708086:
type = CT_946GZ;
break;
@@ -511,6 +515,7 @@
case CT_915GM:
case CT_945G:
case CT_945GM:
+ case CT_945GME:
case CT_946GZ:
case CT_G965:
case CT_Q965:
@@ -551,6 +556,7 @@
case CT_915GM:
case CT_945G:
case CT_945GM:
+ case CT_945GME:
case CT_946GZ:
case CT_G965:
case CT_Q965:
@@ -806,6 +812,9 @@
else if (!strcmp(argv[index], "945GM")) {
*forced_chipset = CT_945GM;
}
+ else if (!strcmp(argv[index], "945GME")) {
+ *forced_chipset = CT_945GME;
+ }
else if (!strcmp(argv[index], "946GZ")) {
*forced_chipset = CT_946GZ;
}


...and this one...

# diff -ruN chipset_info.txt.orig chipset_info.txt
--- chipset_info.txt.orig 2007-04-15 07:31:29.000000000 +0000
+++ chipset_info.txt 2009-08-08 22:53:59.000000000 +0000
@@ -7,3 +7,4 @@
915PM, 915GM, 915GMS, 910GML $2590_8086 $91 - $92
945G $2770_8086 $91 - $92
945GM $27A0_8086 $91 - $92
+945GME $27AC_8086 $91 - $92


More to come later, but I will leave you with this:

# kldstat
Id Refs Address Size Name
1 22 0xc0400000 9fab28 kernel
2 2 0xc0dfb000 4a64c sound.ko
3 1 0xc0e46000 1ae38 snd_hda.ko
4 1 0xc0e61000 802c ng_ubt.ko
5 6 0xc0e6a000 da08 netgraph.ko
6 1 0xc0e78000 6a45c acpi.ko
7 4 0xc5a80000 2000 ng_bluetooth.ko
8 1 0xc5a82000 d000 ng_hci.ko
9 1 0xc5aba000 f000 ng_l2cap.ko
10 1 0xc5acb000 1a000 ng_btsocket.ko
11 1 0xc5aed000 4000 ng_socket.ko
12 1 0xc5b39000 22000 linux.ko
13 1 0xc5e27000 9000 i915.ko
14 1 0xc5e30000 13000 drm.ko


Have fun!

1 comment:

GB Hoyt said...

so lemme get this straight. you had to patch c files to get it to work? (*shudder*)