[Arm-netbook] compiling wireless drivers
Oliver Kiddle
okiddle at yahoo.co.uk
Wed Mar 31 14:19:59 BST 2010
Frans Pop wrote:
> Try:
> $ make ARCH=arm oldconfig
Great, thanks.
Out of interest, what did you use in RT2870STA.dat when installing the
driver? The diffs between what midfun installed and what you get from
the ralink download are:
-WirelessMode=9
+WirelessMode=5
-HT_OpMode=1
+HT_OpMode=0
-HT_BADecline=0
-FtSupport=1
+FtSupport=0
+PSP_XLINK_MODE=0
+WscManufacturer=
+WscModelName=
+WscDeviceName=
+WscModelNumber=
+WscSerialNumber=
I've not got this far yet. The build I set off overnight still failed
because I had CFLAGS set to -O2 and a label defined in some of the inline
assembler was being duplicated by inlining. I've attached what I think
is a correct patch based on googling the problem. It's not important
(I didn't intend to build with -O2) but may help if you ever need to
help cleanup the smartq patches to get them submitted. There was also a
spurious backslash in there.
Oliver
diff --git a/drivers/mtd/onenand/s3c_onenand.c b/drivers/mtd/onenand/s3c_onenand.c
index 3de2f14..bd7ad68 100644
--- a/drivers/mtd/onenand/s3c_onenand.c
+++ b/drivers/mtd/onenand/s3c_onenand.c
@@ -174,11 +174,11 @@ static void onenand_read_burst(void *dest, const void *src, size_t len)
__asm__ __volatile__(
" stmdb r13!, {r0-r3,r9-r12}\n"
" mov r2, %0\n"
- "read_page:\n"
+ "0:\n"
" ldmia r1, {r9-r12}\n"
" stmia r0!, {r9-r12}\n"
" subs r2, r2, #0x1\n"
- " bne read_page\n"
+ " bne 0b\n"
" ldmia r13!, {r0-r3,r9-r12}\n"
::"r" (count));
}
@@ -1805,7 +1805,7 @@ static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to, struct mtd_
}
if (onenand_blkrw_complete(chip, ONENAND_CMD_PROG)) {
- printk(KERN_WARNING "\onenand_write_oob_nolock: Program operation failed.\n");
+ printk(KERN_WARNING "onenand_write_oob_nolock: Program operation failed.\n");
chip->write(~ONENAND_TRANS_SPARE_TSRF_INC, chip->base + ONENAND_REG_TRANS_SPARE);
return -1;
}
More information about the Arm-netbook
mailing list