HNHacker News
TopNewBestAskShowJobs

mrlambchop

753 karma · joined February 20, 2016

hackernews@lamb-chop.co.uk
submissionscomments
mrlambchop··on Ask HN: What things have richly rewarded the time invested in mastering them?
I hesitated to write programming (or coding!) but saw more posts and came back to peek.

Through this, I've learnt product and market fit that made tangible changes in peoples lives - the coding remains a personal rich reward, but the product outcome has been the true 'reward' so to speak.

I value the personal rewards higher than anything however. There are not many things better than a good hour coding session when things go well and everything works. I've fond memories of many good hacks or idea that were so perfect that they pivoted other peoples ideas and changed a product outcome.

mrlambchop··on We Can Stop Pretending LTE-M Is a Low-Power WAN
I'm just in the middle of launching an LTE-M based device that contains a primary power source (a 12v vehicle battery) with a supercap for backup power when the battery dies.

Average power at the moment is around ~3mA to keep an LTE-M module (using a QCOM chipset) connected to the network in DRX mode. Bandwidth wise, LTE-M gives us between 500bytes and 3.5KBs per second on the AT&T network - its not terrible and the byte cost is also "low" from AT&T.

LTE-M network coverage is good - same as AT&T LTE as far as we can tell (as LTE-M is just an extension to the basestation feature set and doesn't need new infrastructure).

Only when AT&T starts to support eDRX and PSM will "a month long" battery be realizable for portable products like this.

mrlambchop··on Skia: an open source 2D graphics library
When leading an Android platform team several years ago, we enable the OpenGL backend to Skia to see if it would accelerate general UI rendering.

The conclusion was after a whole bunch of bug fixes (OpenGL ES 2.0 IIRC), it ran but (a) ate up a lot of GPU memory (b) was slower than the 2D rendering for 80% of the drawing operations (c) some rendering ops (such as the font wide) could not be easily accelerated, meaning you would need to flush the GPU partially rendered frame periodically, then bring into the CPU cache, draw over and then flush again before writing more GPU operations.

Fun experiment - poor outcome!

mrlambchop··on It's Now Possible to Boot Android on I.MX6 Platforms Without Proprietary Blobs
Hey Robert - this is awesome!

In a previous life, I spent a bunch of time within a large semiconductor company pushing for full source releases in the same spirit - it was successful in a single instance, but an uphill battle in most. Cyanogen was an original inspiration.

During the time I looked after Android porting (started in 2008!) one huge issue purveyed - stability of an Android port was incredibly hard to achieve and was hyper focused around a specific release. It wasn't anything in particular - its just that Android was developed by a incredible team of people on one device and that porting to other platforms tended not to behave like the original.

A few colleagues are now working on the VTS at Android as an effort to solve this exact problem. I'm looking forward to seeing big steps to improve this with all the larger vendors very soon.

The fallout from all this however is that a ported platform will still have a ton of bugs and a long tail of issues that impact app behaviour. Sure - Angry Birds will work (I know... flash back to 2013) but the latest VR app that happens to use an obscure EGL extension to get camera data into the GL context might be either super slow or worse, not working.

Its the development of these new APIs in new Android versions that really causes long term issues, as well as ensuring all APIs work correctly over all versions of Android (and Linux kernels). Many to Many is a tough test case when the majority of the testing is manual.

mrlambchop··on Hands on with the First Open Source Microcontroller
SiFive have opened up all the digital pieces of the design (namely HDL and SW), but a lot more is needed to make an IC. Analog I/O, power supplies, clocks, PLLs to name but a few.

Currently "open source IC's" extend to the HDL piece only - embedded flash in 130nm is a highly complicated piece of IP and is either available by third party or through the foundry under license. I am assuming the SRAM physical IP (16KB) in this chip is also a propriety library as well.

Having recently been through building a not dissimilar IC I rushed to be first in line to pick up one of the founders HiFive1 boards (its a great board - really tidy) - this project is a huge step in the right direction. Consider this alternative - in trying to figure out some complicated ARM Cortex-M bug recently, the final solution was found by 'a friend sourcing some information from China'; this is for IP that we'd paid for (although not enough!). ARM are not bad at support at all, but we are very small and help doesn't often come to those who need it in this situations, but those who find it. I'd much rather have an IC with all the digital pieces available and an open community of people integrating it into various projects when trying to make my own project succeed.

mrlambchop··on At 104, John Logie Baird colleague recalls first TV demonstration
I hate to "enjoy" listening to these stories, but I always take the time to hear a speaker out when available from either war. I feel its not just critical to record but also replay these stories, to explain this historic period to our children and the overwhelming sense of scale that ideas, individuals and culture can play in our very modern world.

My grandparents played out their roles in the second world war, yet even through death, they never talked about the war years or their contribution. In part, a strong British backbone but mostly, a sense that its gone and forgotten and it does "no body any good to dig up the war" (quoting maternal grandma).

mrlambchop··on Autopilot: an open source driving agent
Forgive me but it seemed like this was the case. Is this an earlier version of the code or a special opensource clean up then?

http://newatlas.com/geohot-comma-ai-openpilot-open-source/46...

mrlambchop··on Fitbit is reportedly buying Pebble for around $40M
A while back (~1.5 years), I learnt of a chip being developed that was under 80c in volume, came with BLE, buzzer, touch, flash, ram, built in power supplies, display and an 80MHz ARM plus included driver circuits for analog, segment digital and full LCD displays.

The play was "a watch can't afford not to be a smart watch" (from just vibrations and auto time sync/time zone updates etc... through to full app platform capability with a touch/LCD display).

I thought this was an obvious end game for smart watches if it got traction. This chip got canned after a giant semiconductor merger (as I heard it).

mrlambchop··on Autopilot: an open source driving agent
It seems incredible that this is the source code for the $999 product originally destined to be available this year.

I'm extremely familiar with OBD|CAN and car networks - the embedded code alone is an essay in how trivial something can appear (sending commands to a ECU) without considering the million edge cases that make this a safe product to use.

mrlambchop··on Apple Abandons Development of Wireless Routers
My assumption is that voice assistants (alexa, google home) and mesh network access points (ubiquiti, eero, google wifi) will fast converge soon into a single device.
mrlambchop··on Why hardware development is hard, part 1: Verilog is weird (2013)
I found a niche in a ASIC startup environment back in 2005 (5 years post CS degree and work experience to that date mostly being C/C++) as being "the guy that didn't want to work on the CPU" and where verilog engineers were thin on the ground (also I had an awesome boss who encouraged me to jump into the fray).

A littler bartering and I ended up owning display controllers, camera input peripherals, interrupt controllers and other such fun for 65nm and 40nm ASICs - mostly verilog (and, sigh.. TCL for test benches).

I found a singular insight got me all the way from zero to tapeout for all sorts of peripherals and infrastructure without any real support from other RTL peers in the team - design everything around a single clock (inc crossing all async signals into this singular domain as fast as possible) and then explicit pipelining of the peripherals functionality using a judgement of the process/clock speed to guesstimate how much complexity/gate density each pipeline stage could support before starting a new stage.

As I recall, my peripherals were marginally bigger than they needed to be but were extremely easy to push through the back end as the constraints were simple to define and synthesize.

I miss those days - the pressure to tape out a singular piece of art was a great way to focus the brain and the chip bring-up was exhilarating.

mrlambchop··on AMD 2013 APUs to Include ARM Cortex-A5 Processor for TrustZone Capabilities
From Wikipedia:

>The ARM 1 processor was clocked at 8 MHz, and was fitted with 2 MB or 4 MB of RAM.

This is absolutely fascinating. So much RAM in 1985!

mrlambchop··on FPGA Acceleration by Dynamically-Loaded Hardware Libraries [pdf]
When I first heard about the co-processor extensions in ARM, I spent hours dreaming up a dynamic FPGA accelerated co-processor that could have dynamic 'instructions' swapped in based on typical work loads it was receiving. The compiler would generate the custom HW FPGA programs based on profiling data from previous iterations of the app and static inspections - the dynamic complex blocks then attached to the ELF for loading. A statistics block in the CPU determines which ones are loaded via a kernel driver (I think you could do with with pure SW actually - no HW support needed) - you'd need a "branch if instruction-X is available" and I guess some interlocks to stop instructions being swapped out until the SW has finished with them etc...

I may dream, but this team did it! Super cool. Having spent a day with Zynq trying to load bitstreams from Linux running on the hard cores (and completely failing such that I changed attack vector) this alone is impressive :)

mrlambchop··on 'Black Mirror' Is Back, Reflecting Our Technological Fears
Just watched tonights episode with the wife who was on FB liking and commenting on photos of our friends kids doing ordinary stuff. I called this episodes rhetoric after 3 minutes and she was not pleased to find I was right.

We're going to the zoo tomorrow. I might like a tiger if its not sitting around in the California sun and doing nothing.

mrlambchop··on 'Black Mirror' Is Back, Reflecting Our Technological Fears
I've really enjoyed Westworld so far - GoT lost me after the red wedding (too much... television stress) and 3 episodes of this restored my faith in sunday night episode treats. So much reddit theories to read :)
mrlambchop··on 'Black Mirror' Is Back, Reflecting Our Technological Fears
Gah. As an ex-pat I hate missing out on good British TV. I'll check this out - thanks!
mrlambchop··on Thank HN: From Google form to $1k in revenue in one month
Woah - did I miss the announcement that old is now 35 and above? Given the working range of professional engineers in the SF field, it sad that its not easier to invert the problem and build a Young-Fun-and-Full-of-Recent-Academic-Course-Material-Jobs.com.
mrlambchop··on Minimal Raspberry Pi VPU firmware
Well, I wrote the RTL as well as implemented the SW so I guess I do have propriety information on the topic...

In theory, all the code and sequences for the BootROM, 2nd stage, ARM loader and peripheral control functions is available by disassembling the binaries (and extracting some code from the ROM with a mempcy) - it just requires reverse engineering / re-implementing inside and this is part of the fun / why this project is so great.

I might suggest they poke at the linux port and u-boot of the BCM2835 from Roku however :)

mrlambchop··on Minimal Raspberry Pi VPU firmware
I wrote the BootROM and 2nd stage loader used in VC3 and VC4 - way back in ~2005. And the interrupt controller, VPU sync block and various other things used in this open FW.

This is pretty awesome to see how much context the community has reverse engineered from the design - I remember making the first BCM2835 based project (the Roku 2) and spending _A LOT_ of time getting the ARM to startup reliably and boot into Linux as fast as possible. I've spotted 2 concepts in the open FW so far that misunderstood the implementation of the HW but are still working which is fun!

One advantage of the having the GPU start first (maybe the only advantage :) is that it can play a video for a splash screen instead of a static image. If you've ever used a Roku 2/3 or newer, this is a feature I hacked together for a demo to hide boot-up latency - now its a standard part of RokuOS (and is quite hard to replicate on traditional ARM/MIPS SoC's).

mrlambchop··on Adventures in Reverse Engineering Smart Bulb Firmware
My first pass at this would be to put something like Charles between the wifi AP and the internet and taken a look at what was going on. After understanding the protocol, then would it be a lot easier to look for an OTA FW exploit or mitm attacks around the string manipulation functions used to communicate to the outside.
mrlambchop··on ResinOS, run Docker containers on embedded devices
I had a Helium in my SF office window for 6 months back when you were doing low power wireless :)
mrlambchop··on ResinOS, run Docker containers on embedded devices
This is awesome!

I always loved Arduino as it promoted a few core ideas (apps are highly portable, the environment is standardized over boards and devices) - this allows the hobbyist / stack overflow reader to make some awesome hacks in a few hours and really reduces the barrier to entry for maker projects. However, in the last few years, I've wanted a similar type of environment for all the Linux boards that now clutter my desk - the ability to run different apps on multiple boards without having to understand the depths of GPIO alternative function mapping and quirks of various distros.

Having a docker container approach where the app is sandboxed away is the right approach I think for this, but there should be a "standard API" as well put in place that the apps that be written against (and bindings to python, rust etc...) that is also emulated in a desktop or webpage environment. This container doesn't support any HDMI output or full Debian environment - just a basic API to start with. Add PIP/Cargo etc.. for advanced use cases. A movement away from Arduino might be around the corner if there is something as accessible but much more powerful available. The block is no doubt "power management" - suspending/hibernating Linux boards for battery operation etc...

I hacked up a version of resinOS last year (using Android as the base Linux port) and running docker on a root FS but never took it anywhere as the day job (a different kind of startup) takes most cycles still. Can't wait to install this later on a few Pi's :)

mrlambchop··on Designing and Producing 2FA tokens to Sell on Amazon
Ordered 2 of - great write up.

Just pondering - did you disable JTAG on these devices before distributing them?

mrlambchop··on Auto Layout Demystified
I'm a huge fan of PureLayout over using Storyboard or calling the AutoLayout APIs directly.

https://github.com/PureLayout/PureLayout

mrlambchop··on FreeRTOS meets Rust
Whilst not entirely the answer you're after, I highly recommend reading the micrium book for general RTOS understanding (now in its 3rd version!).

https://www.micrium.com/books/ucosiii/

mrlambchop··on Employee #1: Amazon
This was a great test - I just gave myself this test (I'm usually working in embedded systems so this wasn't something I do all the time) - completed in 30 mins, most of it waiting for installs or reading the web. I think it might be possible to add postgres and OAUTH2 into this as well (assuming one can grok OAUTH2 in 30 mins...).
mrlambchop··on Google tags Wikileaks as a dangerous site
Hear hear. My bet on the reason for the status ping ponging is the site was auto flagged through some automated scanning, someone at Google contacted wikileaks (maybe after some press was seen!), wikileaks started cleaning up their shit and the Goog kept re-scanning, probably coordinated on a fascinating email chain.
mrlambchop··on SoftBank Group Nears Deal to Buy ARM Holdings
Mixed feelings on this - huge congrats to ARM friends but I feel it's 1 act too short for an exit like this. I'd love to have seen a British owned tech company higher up the Global 2000 before transferring ownership.
mrlambchop··on Hyperloop One was just hit with an explosive lawsuit from its co-founder
Theranos, Ubeam, Hyperloop One - where technology and magic meet investors money.

Monorail; monorail; monorail!

mrlambchop··on Minnesota woman broadcasts police stop and shooting on Facebook Live
once the lady was cuffed on the ground, I had to turn off - her anguish / pain got real fast. and to see her daughter in the background... :(
← PreviousPage 4 of 5Next →