From help at tuyizere.org Mon Jan 29 00:37:59 2018 From: help at tuyizere.org (gnuforever) Date: Sun, 28 Jan 2018 23:37:59 +0000 Subject: [Gnuk-users] Bricked FST-01 running tip-of-tree gnuk In-Reply-To: (Mike Tsao's message of "Wed, 10 Jan 2018 07:09:19 +0000") References: Message-ID: <87k1w1eeqw.fsf@tuyizere.org> Mike Tsao writes: > My FST-01 is in a state where it can't be unblocked using gpg, nor can it be reflashed using > an SWD connection. Here is my story. > > I ordered two FST-01 devices from SeeedStudio. They arrived today. Do they still sell the FST-01? I can't find it on their website. Could you please share the link? Thanks. Steve From mike at sowbug.com Mon Jan 29 05:56:59 2018 From: mike at sowbug.com (Mike Tsao) Date: Mon, 29 Jan 2018 04:56:59 +0000 Subject: [Gnuk-users] Bricked FST-01 running tip-of-tree gnuk In-Reply-To: <87k1w1eeqw.fsf@tuyizere.org> References: <87k1w1eeqw.fsf@tuyizere.org> Message-ID: Seeed removed the link because it's out of stock, and I believe Niibe-san is working on a newer version (FST-01G) which is functionally identical, but with components that are easier to source. Thus it is possible that Seeed will not restock the FST-01 (this is speculation on my part). If you simply want some generic hardware to try gnuk, you can get the STM32F103C8T6 Minimum System Board (example ), a.k.a. "Blue Pill ," and build for that target. It is not as beautiful or usable a board as the FST-01 for the use case of a portable OpenPGP smart card, but it works. Note that the STM32F103C8T6 reports that it has only 64K flash, which is not enough for gnuk, but the chip almost always has 128K flash and will work fine. You must change your build of texane/stlink to get it to ignore the 64K flash size (excellent patch here ). On Mon, Jan 29, 2018 at 7:38 AM gnuforever wrote: > > Mike Tsao writes: > > > My FST-01 is in a state where it can't be unblocked using gpg, nor can > it be reflashed using > > an SWD connection. Here is my story. > > > > I ordered two FST-01 devices from SeeedStudio. They arrived today. > > Do they still sell the FST-01? I can't find it on their website. > Could you please share the link? > > Thanks. > > Steve > -------------- next part -------------- An HTML attachment was scrubbed... URL: From help at tuyizere.org Mon Jan 29 07:27:14 2018 From: help at tuyizere.org (gnuforever) Date: Mon, 29 Jan 2018 06:27:14 +0000 Subject: [Gnuk-users] Bricked FST-01 running tip-of-tree gnuk In-Reply-To: (Mike Tsao's message of "Mon, 29 Jan 2018 04:56:59 +0000") References: <87k1w1eeqw.fsf@tuyizere.org> Message-ID: <871si9kwn1.fsf@tuyizere.org> Mike Tsao writes: > If you simply want some generic hardware to try gnuk, you can get the STM32F103C8T6 > Minimum System Board (example), a.k.a. "Blue Pill," and build for that > target. Thanks. I will definetly have a look. I am also looking forward the new FST-01 version. From gniibe at fsij.org Mon Jan 29 08:46:27 2018 From: gniibe at fsij.org (NIIBE Yutaka) Date: Mon, 29 Jan 2018 16:46:27 +0900 Subject: FST-01G distribution channel In-Reply-To: <871si9kwn1.fsf@tuyizere.org> References: <87k1w1eeqw.fsf@tuyizere.org> <871si9kwn1.fsf@tuyizere.org> Message-ID: <874ln5ds4s.fsf@fsij.org> gnuforever wrote: > I am also looking forward the new FST-01 version. I shipped FST-01G (w/ NeuG 1.0.7) to FSF shop for 2018, last week. It will be ready for Libre Planet 2018. I will bring some of FST-01G to FOSDEM 2018. Those two (FSF and me in person) are current distribution channels. Well, while keeping the availability at Seeed was good, I have a problem. In the period of five years for 1000 pieces of FST-01, some boards were gone as stock loss at Seeed, and some sales for boards were gone somewhere. (I mean, the amount was a bit bigger than I expected.) While there has been an improvement at Seeed, I am not yet decided if I will ask distribution of FST-01G at Seeed again. -- From help at tuyizere.org Mon Jan 29 16:56:55 2018 From: help at tuyizere.org (gnuforever) Date: Mon, 29 Jan 2018 15:56:55 +0000 Subject: FST-01G distribution channel In-Reply-To: <874ln5ds4s.fsf@fsij.org> (NIIBE Yutaka's message of "Mon, 29 Jan 2018 16:46:27 +0900") References: <87k1w1eeqw.fsf@tuyizere.org> <871si9kwn1.fsf@tuyizere.org> <874ln5ds4s.fsf@fsij.org> Message-ID: <87shaobquw.fsf@tuyizere.org> NIIBE Yutaka writes: > I will bring some of FST-01G to FOSDEM 2018. Great! I will be at FOSDEM as well. Where can I meet you? Will you have a stand? Will you also sell the equipments to flash? If not, what do you recommend? Thanks a lot. Steve From gniibe at fsij.org Tue Jan 30 01:13:49 2018 From: gniibe at fsij.org (NIIBE Yutaka) Date: Tue, 30 Jan 2018 09:13:49 +0900 Subject: FST-01G distribution channel In-Reply-To: <87shaobquw.fsf@tuyizere.org> References: <87k1w1eeqw.fsf@tuyizere.org> <871si9kwn1.fsf@tuyizere.org> <874ln5ds4s.fsf@fsij.org> <87shaobquw.fsf@tuyizere.org> Message-ID: <87tvv4b3uq.fsf@iwagami.gniibe.org> gnuforever wrote: > Where can I meet you? Will you have a stand? No, I won't have a stand. I will have a talk on Sunday, let's meet there. > Will you also sell the equipments to flash? No, not myself. Well, last week, I was asked if selling ST-Link/V2 clone makes sense. His intention was flashing the hardware of ST-Link/V2 clone to Gnuk Token. I answered "Yes, but I'd recommend buying two; one as a programmer, one for Gnuk Token". So, he will bring some, perhaps. ST-Link/V2 clone is something like this: https://alitronik.com/st-link-v2-clone/ I don't know if this product has nRST pin support. If there is support of nRST pin, it's better. Since FST-01G doesn't offer access to reset pin, it doesn't matter for FST-01G. For example, FSM-55 (another board of mine) requires nRST pin support to be flashed. > If not, what do you recommend? While ST-Link/V2 and its clone are useful, the problem here is it's proprietary. Here are some links for ST-Link/V2 information: http://wiki.stm32duino.com/index.php?title=ST-LINK_clone http://e.pavlin.si/2016/02/22/st-link-v2-on-a-single-sided-diy-pcb/ https://lujji.github.io/blog/reverse-engineering-stlink-firmware-part2/ These days, the best programmer would be CMSIS-DAP, since the protocol is documented and published, as well as the implementation. It's not only the flash programmer itself, but the whole environment; If you are using computer with something like GNU/Linux which you control (sans Intel ME), good, you can focus on the problem of good flash programmer. For the manufacturing of FST-01G, I asked Seeed to use BBG-SWD: https://www.hackster.io/gniibe/bbg-swd-f6a408 (Because I cared about attack vectors in the manufacturing process, and BBG is their own product.) Unfortunately, I developed BBG-SWD based on the snapshot of OpenOCD. Perhaps, I will port it to newer OpenOCD and let run it on PocketBeagle, when I will have next opportunity of manufacturing. My talk on Sunday: https://fosdem.org/2018/schedule/event/hwenablement_gnuk_token_and_gnupg_scdaemon/ And my photo: https://fosdem.org/2018/schedule/speaker/yutaka_niibe/ See you at FOSDEM! -- From gniibe at fsij.org Tue Jan 30 12:26:24 2018 From: gniibe at fsij.org (NIIBE Yutaka) Date: Tue, 30 Jan 2018 20:26:24 +0900 Subject: Major change in Gnuk 1.2.8 Message-ID: <87lggf37vj.fsf@fsij.org> Hello, Since version 1.2.8 of Gnuk, build/gnuk.elf doesn't have valid VID:PID. It is substituted by typing: make build/gnuk-vidpid.elf and it is build/gnuk-vidpid.elf which should be used for the flashing process. Never use build/gnuk.elf for flashing the device, please. -- From help at tuyizere.org Tue Jan 30 19:28:16 2018 From: help at tuyizere.org (gnuforever) Date: Tue, 30 Jan 2018 18:28:16 +0000 Subject: FST-01G distribution channel In-Reply-To: <87tvv4b3uq.fsf@iwagami.gniibe.org> (NIIBE Yutaka's message of "Tue, 30 Jan 2018 09:13:49 +0900") References: <87k1w1eeqw.fsf@tuyizere.org> <871si9kwn1.fsf@tuyizere.org> <874ln5ds4s.fsf@fsij.org> <87shaobquw.fsf@tuyizere.org> <87tvv4b3uq.fsf@iwagami.gniibe.org> Message-ID: <87r2q7nqv3.fsf@tuyizere.org> NIIBE Yutaka writes: > No, I won't have a stand. I will have a talk on Sunday, let's meet > there. Sure. I will be there. > While ST-Link/V2 and its clone are useful, the problem here is it's > proprietary. I stand for Free software and free hardware design. Will not use it. > These days, the best programmer would be CMSIS-DAP, since the protocol > is documented and published, as well as the implementation. I will investigate how to use the CMSIS-DAP to flash Gnuk and NeuG > See you at FOSDEM! Sure. See you on Sunday. If I am not wrong there 3 versions of the FST-01G. I am interested in the one with an enclosure you can open and close for flash. Could you please reserve 2 for me? Thank you. Steve