f-log

just another web log

15 May 2017:
pi power front and back
Raspberry Pi 3 HiRes
(slow but steady)

[X]Board in Blender
-[X]Measure board
-[X]Model
-[X]Texture
-[X]Components on the bottom
-[ ]Components on the top
--[X]GPIO pins
--[X]Camera connector
--[X]Display connector (identical to the camera connector)
--[X]Broadcom chip
--[X]Other chip (networking and USB, I think)
--[X]USB power connector
--[ ]HDMI connector
--[ ]Headphone jack
--[ ]Ethernet connector
--[ ]USB connector pair x2 (making four)
--[ ]Micro components, like capacitors (loads of these)

Both the chips are done. Because they are just cuboids it is very straightforward to create the correct UV(making sure scaling is applied). As I had already separated the chip images I just copy and pasted them onto the exported UV image and then used the GIMP fill from pattern-clipboard to do the sides and bottom.

USB Power connector took about 1.5hrs. Started with a plane and Mirror Modifier and then just went to town extruding edges. Once the flat shape was complete I added a Solidify Modifier and the metal sheets had some depth. The Mirror Modifier is my new best friend after using it for the CSI connectors. It really is the best way to deal with symmetrical models.

Another neat trick I found was to create a Cube on the main circuit board model position and scale it then set it to display only as wire-frame. Move it to another layer, do all my modelling within the box and then when I switched back to the main model it fitted perfectly.

rendering of raspberry pi circuit board highlighting the USB power connector x2
13 May 2017:
how i killed sudo and then the internet
How I killed sudo, but first, what the hell I was trying to do.

I had three VMs in VirtualBox and needed to network them together. The documentation is a bit vague on this but the answer is quite simple.

In the VM network settings add a new adaptor and set is as Host. Then in the the VirtualBox network settings for the Host adaptors make sure DHCP is disabled.

Now when you look at the network adaptors in the VMs they will have another interface that is missing the IP address, netmask etc.
You can either manually set this, but lose it on reboot or set a permanent static address.

This is easy. Edit /etc/network/interfaces and add the static entry. For me this was

#virtual host network static IP address
auto enp0s8
iface enp0s8 inet static
address 10.0.3.1
network 10.0.3.0
netmask 255.255.255.0
gateway 10.0.2.2
dns-nameservers 8.8.8.8 10.0.2.2

(do not use this example unless you know what you are doing, it caused more problems, read the whole post to fix)

Where 10.0.3.1 is your machines IP address. 10.0.3.n is favoured as VirtualBoxs interfaces e.g. 10.0.2.X for interface 1 then 10.0.3.X for interface 2 and so on.

Hang on, I thought this post was about killing sudo.

So on the first machine I made this change rebooted and everything looked good but on the second one, after making the change and rebooting I tried sudo ifconfig and got nothing
It just sat there CTRL+c would get me back to the bash prompt but nothing else.

Tried lots of commands with sudo and got nowhere
...snip
...found lots and lots of posts about sudo not working but ALL of the them displayed error messages, none just "hung".
...time passes..

I think to myself I only changed the /etc/network/interfaces file maybe I should start there.
Low and behold there was my mistake.


#virtual host network static IP address
auto enp0s8
iface enp0s8 inet dhcp
address 10.0.3.2
network 10.0.3.0
netmask 255.255.255.0
gateway 10.0.2.2
dns-nameservers 8.8.8.8 10.0.2.2


AGHhhh! It was set to dhcp not static.

The sudo command was stuck trying something network-ish and taking ages to timeout.

I tested this and that was what it was. sudo had not hung but was waiting for a network timeout.

Edited the /etc/network/interfaces entry to be static and everything started working again.

Phew

P.s. I could then get each VM to ping 10.0.3.1 ,2,3 without issue.

--HALT--

AGHhhh now I cannot get to any external addresses!

Needed to remove the default gateway from the second network adaptor.
route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG    0     0        0 enp0s8
10.0.2.0        0.0.0.0         255.255.255.0 U     0     0        0 enp0s3
10.0.3.0        0.0.0.0         255.255.255.0 U     0     0        0 enp0s8


sudo route del default


Comment out the


#network 10.0.3.0
#gateway 10.0.2.2
#dns-nameservers 8.8.8.8 10.0.2.2


Lines in /etc/network/interfaces

sudo service networking restart

So it becomes

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG    0     0        0 enp0s3
10.0.2.0        0.0.0.0         255.255.255.0 U     0     0        0 enp0s3
10.0.3.0        0.0.0.0         255.255.255.0 U     0     0        0 enp0s8

Last quick check.

[X] Can ping other VMs
[ ] Can ping google com (but does DNS)
[X] Can curl google com

Not quite sure why I cannot ping google com. But it does resolve and actual TCP/IP calls works(curl).

Now its sorted.
13 May 2017:
CSI Pi x2 forensics
Raspberry Pi 3 HiRes
(lots to do but, lots done!)

[X]Board in Blender
-[X]Measure board
-[X]Model
-[X]Texture
-[X]Components on the bottom
-[ ]Components on the top
--[X]GPIO pins
--[X]Camera connector
--[X]Display connector (identical to the camera connector)
--[ ]Broadcom chip
--[ ]Other chip (networking and USB, I think)
--[ ]USB power connector
--[ ]HDMI connector
--[ ]Headphone jack
--[ ]Ethernet connector
--[ ]USB connector pair x2 (making four)
--[ ]Micro components, like capacitors (loads of these)

It is quite difficult getting the exact details at this scale and I have already made some cosmetic alterations. I might revisit these at the end, they are not obvious.
The first one is the pins in the SD card slot are shifted over by the slight misalignment of the window hole that you can see the spring in. The second is the shifting of the GPIO pins to match the solder points on the underside of the board. The top and bottom textures are not quite the same size :( If it affects any of the other components with obvious solder points on the underside of the board I will have to fix the texture.

The ReMesh modifier on the SD card slot was a bit more expensive than I first thought. 120k faces created! But looked pretty. Applying the Decimate modifier over and over again got it down to a very reasonable 600 faces.

The display connector caused some concern. None of the photos are looking at the board from the outside, meaning the current perspective hides all the detail on the outer side of the connector. I had to do some gimping to restore the white box that holds the connector before I could start work on the 3D object.

rendering of modelled raspberry pi circuit board highlighting the CSI connectors
loading results, please wait loading animateloading animateloading animate
[More tags]
rss feed

email

root

flog archives


Disclaimer: This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk In fact I'm not responsible for anything ever, so there!

[Pay4Foss banner long]