Re: Updating USB stack from FBSD 8.x and others
We are going to end up doing a lot of damage to the real code as is, I've been busy with other things for a while, but just looking at the FreeBSD code has reminded me of just how far we have come. It also reminds me of just how much further we need to go Robgar Alex Hornung ahorn...@gmail.com wrote in message news:10fba67b0912120726u23e1233awb81cbda04cf...@mail.gmail.com... I've suggested this a long time ago, and I've also provided some people with guidance on how to do it, as I've been in contact with the HPS, the author of usb4bsd. The main point here is that his i4b repo contains usb4bsd and a userland wrapper for it. Hence usb4bsd can be elegantly ported to dragonfly by modifying as little as possible from the real code and just wrapping it around as his userland wrapper shows. Any attempt to port this should be aiming for this solution so to avoid a huge mess and keep the code maintainable. Cheers, Alex Hornung 2009/12/12 Alexander Polakov polac...@gmail.com: 2009/12/12, elekktrett...@exemail.com.au elekktrett...@exemail.com.au: Hi all, 1) I think we desperately need to bring our USB stack into reality. Is anyone working on bringing in the new FreeBSD USB code or maybe one from other BSDs? How difficult would it be? Lets dicuss. I am going to port FreeBSD 8 stack.
Re: Updating USB stack from FBSD 8.x and others
elekktrett...@exemail.com.au wrote: 2) BTX: i have been recently bitten by this thing again and I would really like to see GRUB + multiboot in, BTX and loader out. Just out of curiosity, what's wrong with BTX + loader? It's working quite well for me, and I like the fact that it is scriptable so you can do whatever you want, e.g. create your own menus and so on. (Admittedly FORTH is not the most intuitive language to program in, but you get used to it.) GRUB2 also supports scripts, but it's rather limited in comparison. Also, it's not very well documented (as far as I can tell), and most of it is under GPL v3. BTW, if you want to use GRUB for some reason, it is able to chain-load the BSD loader just fine. So there's no reason to get rid of BTX + loader. Just my 2 cents. I would be willing to contribute up to $500 USD for each, maybe others will put in some $$$ too. I would prefer to put some money on keeping loader. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
Re: Updating USB stack from FBSD 8.x and others
Just out of curiosity, what's wrong with BTX + loader? It's working quite well for me, and I like the fact that it is scriptable so you can do whatever you want, e.g. create your own menus and so on. (Admittedly FORTH is not the most intuitive language to program in, but you get used to it.) Hardware. I've had 2 keyboards now(USB wireless) that simply dont work in loader. So chainloading wont help. Meanwhile they work perfect in GRUB. I would expect plenty more keyboards to be made that will not work. Its a hassle that need not be. And in regards to scripts and making menu the way you want. Editing grub menu is super easy, but you know. A nice graphical DragonFly logo in grub would also lighten things up. Common, its the 21st century. ASCII logos may have been cool in the 80's but now its more like cliche. Seeing that a goal of DragonFly is write unix technologies of the new century, I think a graphical boot menu is a must. Even OpenSolaris now uses grub.
Re: Updating USB stack from FBSD 8.x and others
elekktrett...@exemail.com.au wrote: Just out of curiosity, what's wrong with BTX + loader? It's working quite well for me, and I like the fact that it is scriptable so you can do whatever you want, e.g. create your own menus and so on. (Admittedly FORTH is not the most intuitive language to program in, but you get used to it.) Hardware. I've had 2 keyboards now(USB wireless) that simply dont work in loader. So chainloading wont help. Meanwhile they work perfect in GRUB. I would expect plenty more keyboards to be made that will not work. Its a hassle that need not be. The problem with USB keyboards was fixed in FreeBSD recently. Since DragonFly bascially shares the same loader, maybe it's time to sync it to FreeBSD. And in regards to scripts and making menu the way you want. Editing grub menu is super easy, but you know. A nice graphical DragonFly logo in grub would also lighten things up. You mean like this? http://www.secnetix.de/olli/FreeBSD/vloader/screenshot6.png This is an actual screen shot from the loader menu while booting up DragonFly within qemu. It requires a patched loader. If anybody is interested to give it a try, here are instructions (also for DragonFly): http://wiki.freebsd.org/OliverFromme/BootLoaderTest Beware, this is currently experimental code. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
Re: Updating USB stack from FBSD 8.x and others
The problem with USB keyboards was fixed in FreeBSD recently. Since DragonFly bascially shares the same loader, maybe it's time to sync it to FreeBSD. Can you point me to a specific commit(s) ? http://www.secnetix.de/olli/FreeBSD/vloader/screenshot6.png This is an actual screen shot from the loader menu while booting up DragonFly within qemu. It requires a patched loader. If anybody is interested to give it a try, here are instructions (also for DragonFly): http://wiki.freebsd.org/OliverFromme/BootLoaderTest Nice! Petr
Re: Updating USB stack from FBSD 8.x and others
elekktrett...@exemail.com.au wrote: The problem with USB keyboards was fixed in FreeBSD recently. Since DragonFly bascially shares the same loader, maybe it's time to sync it to FreeBSD. Can you point me to a specific commit(s) ? I'm sorry, I only remember that the problem was reported to be solved on one of the mailing lists. Personally I never had such problems myself, so I didn't pay close attention to those threads. Also, at least two people reported that a workaround was to connect a USB hub to their machines and then connect the keyboard to that hub. It's strange, but it worked. Obviously there are a lot of very broken BIOSes out there, each with its own quirks. Peter Wemm even had a mainboard which turned off USB legacy support depending on the slice's system ID in the MBR. When he changed the ID of his BSD slice from 165 (0xA5) to msdos, his USB keyboard magically started to work, but ACPI stopped working. He ended up replacing the board with something less crappy, IIRC. PC hardware sucks. :-( Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
Re: Updating USB stack from FBSD 8.x and others
I'll try FBSD8 and see if my keyboard works. Petr
Re: Updating USB stack from FBSD 8.x and others
I'm pretty sure the FreeBSD fix was the real-mode loader fix which we've already incorporated in master (and I also think 2.4.1 but I'm not sure). -Matt Matthew Dillon dil...@backplane.com
Re: Updating USB stack from FBSD 8.x and others
2009/12/12, elekktrett...@exemail.com.au elekktrett...@exemail.com.au: Hi all, 1) I think we desperately need to bring our USB stack into reality. Is anyone working on bringing in the new FreeBSD USB code or maybe one from other BSDs? How difficult would it be? Lets dicuss. I am going to port FreeBSD 8 stack. Excellent! Anyone else willing to put in some $$$? Matt, Hows it going with getting the non-profit status for DragonFly? It'd be great if any financial contributions would also be tax deductable. Cheers, petr
Re: Updating USB stack from FBSD 8.x and others
Matt, Hows it going with getting the non-profit status for DragonFly? It'd be great if any financial contributions would also be tax deductable. I was looking at doing this a while ago, though I put it off because of job searching. I'll see if I can start again after the holidays. We do have some small funds built up from what mentors have kindly donated from Summer of Code work, for legal fees. I don't know if non-profit would help us here - people would have to pay money to the non-profit entity, which would then hire someone (Alexander) to do the work. Once money gets involved with an official organization, the processes have to be very clear and very fair. We'd probably need to move to a grant application process like what the FreeBSD Foundation does now. We're fine with this informal volunteer process we have now, as a way to move money between individuals. I've seen open source non-profits end up with problems because money gets awarded to individual developers in a not-too-clear way and other developers get hurt, emotionally and financially.
Re: Updating USB stack from FBSD 8.x and others
elekktrett...@exemail.com.au wrote: I don't know if non-profit would help us here - people would have to pay money to the non-profit entity, which would then hire someone (Alexander) to do the work. Once money gets involved with an official organization, the processes have to be very clear and very fair. We'd probably need to move to a grant application process like what the FreeBSD Foundation does now. We're fine with this informal volunteer process we have now, as a way to move money between individuals. I've seen open source non-profits end up with problems because money gets awarded to individual developers in a not-too-clear way and other developers get hurt, emotionally and financially. I know what you mean, but being able to use such contributions for tax deductions would surely encourage more people to contribute. Petr Not to forget several thou (in US$ or equivalent) that has to go for all the unavoidable setup paperwork and forever-after periodic filings. That's money that can't fund anything but chair-warmers - a class already in massive surplus. :-( Bill
Updating USB stack from FBSD 8.x and others
Hi all, 1) I think we desperately need to bring our USB stack into reality. Is anyone working on bringing in the new FreeBSD USB code or maybe one from other BSDs? How difficult would it be? Lets dicuss. 2) BTX: i have been recently bitten by this thing again and I would really like to see GRUB + multiboot in, BTX and loader out. I would be willing to contribute up to $500 USD for each, maybe others will put in some $$$ too. Cheers, Petr
Re: Updating USB stack from FBSD 8.x and others
2009/12/12 elekktrett...@exemail.com.au Hi all, 1) I think we desperately need to bring our USB stack into reality. Is anyone working on bringing in the new FreeBSD USB code or maybe one from other BSDs? How difficult would it be? Lets dicuss. Some time ago I said that I'd like to bring the HPS USB stack (now in FreeBSD 8.0) to DragonFly. But no time and too little knowledge about device drivers. I'd also like to spend a few hundred dollars for the person who ports FreeBSD's USB stack. Regards, Michael
Re: Updating USB stack from FBSD 8.x and others
2009/12/12, elekktrett...@exemail.com.au elekktrett...@exemail.com.au: Hi all, 1) I think we desperately need to bring our USB stack into reality. Is anyone working on bringing in the new FreeBSD USB code or maybe one from other BSDs? How difficult would it be? Lets dicuss. I am going to port FreeBSD 8 stack.
Re: Updating USB stack from FBSD 8.x and others
I've suggested this a long time ago, and I've also provided some people with guidance on how to do it, as I've been in contact with the HPS, the author of usb4bsd. The main point here is that his i4b repo contains usb4bsd and a userland wrapper for it. Hence usb4bsd can be elegantly ported to dragonfly by modifying as little as possible from the real code and just wrapping it around as his userland wrapper shows. Any attempt to port this should be aiming for this solution so to avoid a huge mess and keep the code maintainable. Cheers, Alex Hornung 2009/12/12 Alexander Polakov polac...@gmail.com: 2009/12/12, elekktrett...@exemail.com.au elekktrett...@exemail.com.au: Hi all, 1) I think we desperately need to bring our USB stack into reality. Is anyone working on bringing in the new FreeBSD USB code or maybe one from other BSDs? How difficult would it be? Lets dicuss. I am going to port FreeBSD 8 stack.