Adding a Micro SD slot to the NTC CHIP
Publish date: 2019-04-21
Tags: ntc-chip, ARM, SBC, Linux, hardware
In the previous post, I explained why the NAND storage included with the NTC CHIP is problematic. The main reason is of course that it isn’t supported by the mainline Linux kernel and U-Boot. Even if patched back in, it isn’t particularly reliable and is also much slower and smaller than current SD cards. Fortunately, the Allwinner A13/R8 SoC includes an SD card controller and NTC brought the necessary I/O pins out to the headers from the SoC which means we can add our own slot relatively easily!

CHIP-SD-slot-3q-view_hub1cbedb08b11e0d91e06d3462e40a833_542663_800x0_resize_q75_box.jpg
Micro SD slot ‘hat’ for CHIP
One issue with this build is that it won’t work as described if you are using the CHIP in the PocketCHIP case. I generally use mine as standalone devices in various projects, such as running the OctoPrint print server for my 3d printer.

Before the demise of NTC, it looks like someone made a very nice product that was able to be installed between the CHIP and PocketCHIP case allowing one to add an SD card to the PocketCHIP called the Tzatziffy II. Unfortunately it looks like it’s been sold out for a while and probably won’t be produced again. The design is available as a github repository, so someone could theoretically get enough people together to make another production run worthwhile if there is enough interest. The original creator should be contacted both out of respect and also because I couldn’t actually find a license file in the project with a quick skim through. They also might be able to do a production run the easiest if enough orders were lined up.

This build will require soldering skills but it’s not too difficult. I will admit I’ve been soldering things for a long time including quite a bit of board assembly at my first job out of college. I made mine with the $4 cheap-o soldering iron from Harbor Freight but a better iron will make it significantly easier. The most important thing is to use soldering flux! While leaving you with a bit of a mess to clean up, this makes pretty much any soldering job much easier. Because the SD card adapter is made of plastic, you want to be fast with your work so you don’t melt it and the flux will allow the solder to bond with the pads much more quickly. If you’re like me though, you probably have a bunch of these adapters lying around so you can probably take a few tries to get it right.

Parts
This project can be done with as little as a soldering iron, solder, an SD card adapter, and some wires. In fact, this is how I did it the first time because I had everything on hand and wasn’t sure it would work at all.

sd-adapter-with-wires_hu003643c1249d3a2482e0846e8fd03c95_425558_800x0_resize_q75_box.jpg
Wires soldered directly to SD Adapter
sd-adapter-kludge_hu2a10637025d80403ec56a30667f82814_439536_800x0_resize_q75_box.jpg
Ugly and cumbersome, but functional

I would recommend the following to make a nice finished project as well as making it much easier on yourself. For convenience, I’ve included links to Amazon with my Amazon Associate ID, from which I can earn a little bit for qualifying purchases. A lot of this stuff is common though and you probably have or can borrow some of it, or find it around town except for perhaps the perfboard and pin headers. Most of the stuff I have on hand anyway for various projects, so this project essentially cost me nothing but time. If you have a maker space in your town, they should have a lot of this stuff too, especially the tools.

chip-sd-slot-parts-and-tools_hu0c8ad189c25ff3c3f5ad5fed29f5e260_633283_800x0_resize_q75_box.jpg
Parts and tools used to make a Micro SD card slot for your CHIP
No. Part Notes
1 Wire Strippers I really like these self-adjusting wire strippers but anything that strips insulation from wire will do just fine.
2 Flush Cutters Very useful tool to have on hand for tons of situations. I have a bunch of these.
3 Solid Wire Nice to have in several colors for color coding.
4 Brush Useful for applying flux and cleaning it up with alcohol when finished. I got a pack of cheap ones at Harbor Freight.
5 Rosin Flux If you’re having trouble soldering, more flux is usually the answer.
6 Solder Rosin core solder. Even though the solder already has flux, more still makes the job easier.
7 Right Angle Pin Header Attaches to SD card adapter.
8 Pin Header Attaches to perfboard so it can plug into CHIP. Available in a kit with right angle and others linked above.
9 SD Adapter Usually included with your Micro SD card.
10 NTC CHIP You should have this already.
11 Perfboard Great for all kinds of projects. This one is double sided and comes tinned making it easy to work with.
12 Soldering Iron Cheapo soldering iron. You should get a better one if you do this a lot. A cheap handle is fine but quality tips are worth the money. Something like the one I linked should take 900M style tips from a quality brand like Hakko. I’m using a cheap $4 iron from Harbor Freight to show it can work for you though.
I drew some crude wiring diagrams for both the Alpha CHIP and the released version because they moved the 3V3 power supply location. You most likely have the non-Alpha version. The normal CHIP has the pin function conveniently written onto the header so it should be easy.

CHIP-SD-Adapter.png
Wiring diagram for released CHIP
CHIP-Alpha-SD-Adapter.png
Wiring Diagram for Alpha version of the NTC CHIP
The assembly is actually fairly straightforward. Headers can be clipped apart with the flush cutters. You need to attach the longer pins of the right andgle header to the Micro SD adapter’s exposed pads. It won’t line up exactly, but it’s close enough and far easier than trying to solder on individual wires. I’d recommend a fairly large soldering tip as that will allow you to dump heat into the joint very quickly. It probably seems a bit counter intuitive, but this is what you want so you can make the solder flow and adhere well onto the pad and the pin before the heat has enough time to transfer to the surrounding area and melt the plastic. Use plenty of flux on both the adpater pads and the header pins and you should be able to get the solder to flow onto both quickly. One that is done, it can easily attach to the perfboard.

sd-adapter-with-header_hu956662ce3c1e3d7937191302776d1919_313146_800x0_resize_q75_box.jpg
SD Adapter with right angle pin header soldered onto its pads

Next, you should attach some of the straight pin headers to the perfboard so that they line up with the holes on the CHIP’s headers. The short end should go to the perfboard so that the longer end can stick down into the CHIP. I found it easiest to actually stick the long end of the header into its spot on the chip, then set the perfboard on top how you want it and solder the pins in place.

SD-slot-bottom_huaf400bd49e7c3ba7fa4f9da6dd54f43f_710118_800x0_resize_q75_box.jpg
Pin headers attached to perfboard
Next, you’ll need to solder wires to connect the pins from the SD Card adapter to the approriate pin on the CHIP connector. I prefer to color code mine but it doesn’t matter if you want to just use a single color. There’s probably enough solder already on the joint between the header and the perfboard to connect the wire, but feel free to add more. It’s easier to make the connection if you dip the end of the wire in some flux and tin it, that is coat it in solder on its own. It should be fairly straightforward, but be careful not to bridge any pins or short any wires together, especially on the group of six CSI pins where it gets a bit tight.

SD-slot-top_hua64ea59021b495dd1354853568419890_747297_800x0_resize_q75_box.jpg
Wires connecting SD adapter header to CHIP headers
When you’re done you may want to take a multimeter in continuity mode (beeps when the probes complete a circuit) and double check that the connections you want to be there are there and also that they don’t short out with each other. This is a pretty simple circuit so a visual inspection can go a long way also. I also added some hotglue to reinforce the adapter connection to relieve stress placed on the header when manipulating the card.

SD-slot-hotglue_hu65849b31a7eccc00f05a2f8aef391845_244500_800x0_resize_q75_box.jpg
Hot glue for stress relief
Wrapping Up
Put away your tools, that’s it for the hardware part of this project! In the next post I’ll explain how to get this to work in Linux. We need to add some information to the device tree so that Linux knows how to configure the appropriate driver and then you’ll be able to use your SD card slot. Overlaying the device tree will work on the stock NTC kernel, so if all you wanted was an SD card slot, you’re almost done.

原文地址
https://byteporter.com/ntc-chip-micro-sd-slot/

https://github.com/aleh/pocketchip-jwmrc

sudo apt-get install jwm
sudo apt-get install libxft-dev
git clone https://github.com/aleh/pocketchip-jwmrc.git
cd pocketchip-jwmrc
sudo make install
sudo reboot

桌面配置文件 /home/chip/.jwmrc

<?xml version="1.0"?>
<JWM>
   <!-- vim: set expandtab ts=3 sw=3 ai : -->

   <RootMenu height="18" onroot="12">

      <Program icon="terminal.png" label="Terminal">vala-terminal -fs 8</Program>
      <Program icon="pico8.png" label="PICO-8">pico8</Program>
      <Program icon="musicsequencer.png" label="SunVox">sunvox</Program>
      <Program icon="filebrowser.png" label="File Manager">pcmanfm</Program>
      <Program icon="webbrowser.png" label="Internet">surf -n -p -u "Mozilla/4.0 (PSP (PlayStation Portable); 2.00)" google.com</Program>
      <Program icon="texteditor.png" label="Text Editor">leafpad</Program>
      <Program icon="virtualboy.png" label="RetroArch">retroarch</Program>     
      <Program icon="kodi.png" label="Kodi">kodi</Program>
      <Separator/>

      <Menu label="Sound">
         <Program label="Enable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback on
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Program label="Disable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback off 
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Separator/>
         <Program label="Low">amixer sset 'Power Amplifier' playback 40%</Program>
         <Program label="Medium">amixer sset 'Power Amplifier' playback 50%</Program>
         <Program label="High">amixer sset 'Power Amplifier' playback 70%</Program>
         <Program label="Max">amixer sset 'Power Amplifier' playback 100%</Program>
      </Menu>

      <Menu label="Backlight">
         <Program label="10%">echo "1" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="20%">echo "2" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="50%">echo "5" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="80%">echo "8" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="100%">echo "10" > /sys/class/backlight/backlight/brightness</Program>
      </Menu>

      <Menu label="WiFi">
         <Program label="Configure">xfce4-terminal --hide-menubar --hide-toolbar -e nmtui</Program>
      </Menu>

      <Menu label="More">
         <Program label="Shutdown">systemctl poweroff</Program>
         <Program label="Reboot">systemctl reboot</Program>
         <Exit label="Log Out"/>
         <Separator/>

         <Program label="Screenshoot (Shift+Alt+3)">xfce4-screenshooter -d 1 -f -s /home/chip/Pictures</Program>
         <Separator/>

         <Restart label="Reload .jwmrc"/>
         <Program label="Edit .jwmrc">leafpad --tab-width=3 ~/.jwmrc</Program>
      </Menu>

   </RootMenu>

   <!-- By default we run all the programs maximized. -->
   <Group>
      <Name>.*</Name>
      <Option>maximized</Option>
   </Group>

   <!-- These have own preferences. -->
   <Group>
      <Name>sunvox|pico|retroarch|kodi</Name>
      <Option>notitle</Option>
      <Option>noborder</Option>
      <Option>maximized</Option>
   </Group>

   <!-- Programs that should not run maximized -->
   <Group>
      <Name>VisualBoyAdvance</Name>
   </Group>

   <Tray x="0" y="-1" height="20" autohide="off" layer="normal"> 

      <TrayButton label="Start" popup="">root:1</TrayButton>

      <Pager labeled="false"/>

      <TaskList maxwidth="150"/>

      <Dock/>

      <!-- Here an external X program (our battery status one) is started and is wrapped into the tray. -->
      <Swallow name="pocketchip-xbatt" width="70">pocketchip-xbatt --text=#ffffff --background=#ff007f</Swallow>

      <Clock format="%H:%M" zone=":Asia/Shanghai"/>

   </Tray>

   <WindowStyle>

      <Font>Sans-8:bold</Font>
      <Width>2</Width>
      <Height>15</Height>

      <Active>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>white</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Active>

      <Inactive>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>black</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Inactive>

   </WindowStyle>

   <TaskListStyle>
      <Font>Sans-8</Font>
      <ActiveForeground>#ff007f</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Foreground>#ff007f</Foreground>
      <Background>white</Background>
      <Outline>black</Outline>
   </TaskListStyle>

   <TrayStyle>
      <Font>Sans-8:bold</Font>
      <Background>#ff007f</Background>
      <Foreground>white</Foreground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
      <Outline>#ff007f</Outline>
      <Active>
         <Foreground>white</Foreground>
         <Background>#ff007f</Background>
      </Active>
   </TrayStyle>

   <PagerStyle>
      <Outline>black</Outline>
      <Foreground>gray90</Foreground>
      <Background>#808488</Background>
      <ActiveForeground>#70849d</ActiveForeground>
      <ActiveBackground>#2e3a67</ActiveBackground>
   </PagerStyle>

   <MenuStyle>
      <Font>Sans-8</Font>
      <Foreground>white</Foreground>
      <Background>#ff007f</Background>
      <Outline>#ff007f</Outline>
      <Corner>1</Corner>
      <ActiveForeground>#ff007f</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
   </MenuStyle>

   <PopupStyle>
      <Enabled>false</Enabled>
      <Font>Sans-8</Font>
      <Outline>white</Outline>
      <Foreground>black</Foreground>
      <Background>yellow</Background>
   </PopupStyle>

   <IconPath>/home/chip/appIcons/</IconPath>

   <!-- Virtual Desktops -->
   <Desktops width="2" height="2">
      <!-- <Background type="solid">#4d4d4d</Background> -->
      <Background type="image">/home/chip/appIcons/background.jpg</Background>
   </Desktops>

   <!-- Double click speed (in milliseconds) -->
   <DoubleClickSpeed>400</DoubleClickSpeed>

   <!-- Double click delta (in pixels) -->
   <DoubleClickDelta>2</DoubleClickDelta>

   <!-- The focus model (sloppy or click) -->
   <FocusModel>click</FocusModel>

   <!-- The snap mode (none, screen, or border) -->
   <SnapMode distance="10">border</SnapMode>

   <!-- The move mode (outline or opaque) -->
   <MoveMode>opaque</MoveMode>

   <!-- The resize mode (outline or opaque) -->
   <ResizeMode>opaque</ResizeMode>

   <!--
    <StartupCommand>gkrellm</StartupCommand>
   -->

   <!-- Key bindings -->
   <Key key="Up">up</Key>
   <Key key="Down">down</Key>
   <Key key="Right">right</Key>
   <Key key="Left">left</Key>
   <Key key="h">left</Key>
   <Key key="j">down</Key>
   <Key key="k">up</Key>
   <Key key="l">right</Key>
   <Key key="Return">select</Key>
   <Key key="Escape">escape</Key>

   <Key mask="SA" key="3">exec:xfce4-screenshooter -f -s /home/chip/Pictures</Key>

   <Key mask="C" key="Tab">next</Key>
   <Key mask="A" key="Tab">next</Key>

   <Key mask="C" key="w">close</Key>
   <Key mask="C" key="q">close</Key>

   <Key mask="C" key="Escape">root:1</Key>
   <Key key="XF86PowerOff">showdesktop</Key>

   <Key mask="S" key="Escape">window</Key>

   <Key mask="C" key="#">desktop#</Key>
   <Key mask="C" key="Enter">maximize</Key>

   <Key mask="C" key="Right">rdesktop</Key>
   <Key mask="C" key="Left">ldesktop</Key>
   <Key mask="C" key="Up">udesktop</Key>
   <Key mask="C" key="Down">ddesktop</Key>
</JWM>

app图标路径<IconPath>/home/chip/appIcons/</IconPath>
appIcons.rar

Screenshot - 2020年11月14日 - 07时08分07秒.png

灰色的

<?xml version="1.0"?>
<JWM>
   <!-- vim: set expandtab ts=3 sw=3 ai : -->

   <RootMenu height="18" onroot="12">

      <Program icon="terminal.png" label="Terminal">vala-terminal -fs 8</Program>
      <Program icon="pico8.png" label="PICO-8">pico8</Program>
      <Program icon="musicsequencer.png" label="SunVox">sunvox</Program>
      <Program icon="filebrowser.png" label="File Manager">pcmanfm</Program>
      <Program icon="webbrowser.png" label="Internet">surf -n -p -u "Mozilla/4.0 (PSP (PlayStation Portable); 2.00)" google.com</Program>
      <Program icon="texteditor.png" label="Text Editor">leafpad</Program>
      <Program icon="virtualboy.png" label="RetroArch">retroarch</Program>     
      <Program icon="kodi.png" label="Kodi">kodi</Program>
      <Separator/>

      <Menu label="Sound">
         <Program label="Enable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback on
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Program label="Disable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback off 
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Separator/>
         <Program label="Low">amixer sset 'Power Amplifier' playback 40%</Program>
         <Program label="Medium">amixer sset 'Power Amplifier' playback 50%</Program>
         <Program label="High">amixer sset 'Power Amplifier' playback 70%</Program>
         <Program label="Max">amixer sset 'Power Amplifier' playback 100%</Program>
      </Menu>

      <Menu label="Backlight">
         <Program label="10%">echo "1" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="20%">echo "2" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="50%">echo "5" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="80%">echo "8" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="100%">echo "10" > /sys/class/backlight/backlight/brightness</Program>
      </Menu>

      <Menu label="WiFi">
         <Program label="Configure">xfce4-terminal --hide-menubar --hide-toolbar -e nmtui</Program>
      </Menu>

      <Menu label="More">
         <Program label="Shutdown">systemctl poweroff</Program>
         <Program label="Reboot">systemctl reboot</Program>
         <Exit label="Log Out"/>
         <Separator/>

         <Program label="Screenshoot (Shift+Alt+3)">xfce4-screenshooter -d 1 -f -s /home/chip/Pictures</Program>
         <Separator/>

         <Restart label="Reload .jwmrc"/>
         <Program label="Edit .jwmrc">leafpad --tab-width=3 ~/.jwmrc</Program>
      </Menu>

   </RootMenu>

   <!-- By default we run all the programs maximized. -->
   <Group>
      <Name>.*</Name>
      <Option>maximized</Option>
   </Group>

   <!-- These have own preferences. -->
   <Group>
      <Name>sunvox|pico|retroarch|kodi</Name>
      <Option>notitle</Option>
      <Option>noborder</Option>
      <Option>maximized</Option>
   </Group>

   <!-- Programs that should not run maximized -->
   <Group>
      <Name>VisualBoyAdvance</Name>
   </Group>

   <Tray x="0" y="-1" height="20" autohide="off" layer="normal"> 

      <TrayButton label="Start" popup="">root:1</TrayButton>

      <Pager labeled="false"/>

      <TaskList maxwidth="150"/>

      <Dock/>

      <!-- Here an external X program (our battery status one) is started and is wrapped into the tray. -->
      <Swallow name="pocketchip-xbatt" width="70">pocketchip-xbatt --text=#ffffff --background=#333333</Swallow>

      <Clock format="%H:%M" zone=":Asia/Shanghai"/>

   </Tray>

   <WindowStyle>

      <Font>Sans-8:bold</Font>
      <Width>2</Width>
      <Height>15</Height>

      <Active>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>white</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Active>

      <Inactive>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>black</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Inactive>

   </WindowStyle>

   <TaskListStyle>
      <Font>Sans-8</Font>
      <ActiveForeground>#333333</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Foreground>#333333</Foreground>
      <Background>white</Background>
      <Outline>black</Outline>
   </TaskListStyle>

   <TrayStyle>
      <Font>Sans-8:bold</Font>
      <Background>#333333</Background>
      <Foreground>white</Foreground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
      <Outline>#ff007f</Outline>
      <Active>
         <Foreground>white</Foreground>
         <Background>#ff007f</Background>
      </Active>
   </TrayStyle>

   <PagerStyle>
      <Outline>black</Outline>
      <Foreground>gray90</Foreground>
      <Background>#808488</Background>
      <ActiveForeground>#70849d</ActiveForeground>
      <ActiveBackground>#2e3a67</ActiveBackground>
   </PagerStyle>

   <MenuStyle>
      <Font>Sans-8</Font>
      <Foreground>white</Foreground>
      <Background>#333333</Background>
      <Outline>#ff007f</Outline>
      <Corner>1</Corner>
      <ActiveForeground>#ff007f</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
   </MenuStyle>

   <PopupStyle>
      <Enabled>false</Enabled>
      <Font>Sans-8</Font>
      <Outline>white</Outline>
      <Foreground>black</Foreground>
      <Background>yellow</Background>
   </PopupStyle>

   <IconPath>/home/chip/appIcons/</IconPath>

   <!-- Virtual Desktops -->
   <Desktops width="2" height="2">
      <Background type="solid">#666666</Background>
   </Desktops>

   <!-- Double click speed (in milliseconds) -->
   <DoubleClickSpeed>400</DoubleClickSpeed>

   <!-- Double click delta (in pixels) -->
   <DoubleClickDelta>2</DoubleClickDelta>

   <!-- The focus model (sloppy or click) -->
   <FocusModel>click</FocusModel>

   <!-- The snap mode (none, screen, or border) -->
   <SnapMode distance="10">border</SnapMode>

   <!-- The move mode (outline or opaque) -->
   <MoveMode>opaque</MoveMode>

   <!-- The resize mode (outline or opaque) -->
   <ResizeMode>opaque</ResizeMode>

   <!--
    <StartupCommand>gkrellm</StartupCommand>
   -->

   <!-- Key bindings -->
   <Key key="Up">up</Key>
   <Key key="Down">down</Key>
   <Key key="Right">right</Key>
   <Key key="Left">left</Key>
   <Key key="h">left</Key>
   <Key key="j">down</Key>
   <Key key="k">up</Key>
   <Key key="l">right</Key>
   <Key key="Return">select</Key>
   <Key key="Escape">escape</Key>

   <Key mask="SA" key="3">exec:xfce4-screenshooter -f -s /home/chip/Pictures</Key>

   <Key mask="C" key="Tab">next</Key>
   <Key mask="A" key="Tab">next</Key>

   <Key mask="C" key="w">close</Key>
   <Key mask="C" key="q">close</Key>

   <Key mask="C" key="Escape">root:1</Key>
   <Key key="XF86PowerOff">showdesktop</Key>

   <Key mask="S" key="Escape">window</Key>

   <Key mask="C" key="#">desktop#</Key>
   <Key mask="C" key="Enter">maximize</Key>

   <Key mask="C" key="Right">rdesktop</Key>
   <Key mask="C" key="Left">ldesktop</Key>
   <Key mask="C" key="Up">udesktop</Key>
   <Key mask="C" key="Down">ddesktop</Key>
</JWM>

Screenshot - 2020年11月14日 - 07时59分11秒.png

Pocketchip安装RetroArch

/usr/lib/arm-linux-gnueabihf/libSDL2.so:对‘wl_egl_window_get_attached_size’未定义的            引用
/usr/lib/arm-linux-gnueabihf/libSDL2.so:对‘wl_egl_window_destroy’未定义的引用
/usr/lib/arm-linux-gnueabihf/libSDL2.so:对‘wl_egl_window_create’未定义的引用
/usr/lib/arm-linux-gnueabihf/libSDL2.so:对‘wl_egl_window_resize’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:187: recipe for target 'retroarch' failed
make: *** [retroarch] Error 1

解决方法地址
https://old.reddit.com/r/ChipCommunity/comments/f3wxtj/pico8_symbol_lookup_error_wl_egl_window_destroy/

我的操作步骤
下载libsdl2-2.0-0_2.0.2+dfsg1-6_armhf.deb
地址http://chip.jfpossibilities.com/chip/debian/repo/pool/main/libs/libsdl2/libsdl2-2.0-0_2.0.2+dfsg1-6_armhf.deb
安装
sudo dpkg -i libsdl2-2.0-0_2.0.2+dfsg1-6_armhf.deb
对libsdl2进行了降级操作
最后重新编译通过

2020.6.21 经过测试,下面购买的那个屏幕,出现了问题,背光灯时亮时不亮,可能是电路不兼容,长时间不正常工作挂了吧,差不多2个月。所以,你们要是买了,出现了类似的问题,别过来怼我……
4.3寸IPS电阻触摸屏(300亮度)其他亮度未测试,不建议买
点击购买地址 给卖家说要300亮度的4.3寸800*480电阻触摸屏
重新编译PocketChip的dts,并用添加的这个替换面板定义
git clone https://github.com/KoljaWindeler/CHIP-dt-overlays
cd CHIP-dt-overlays/compiler/
./install.sh
cd ..
make clean all
git clone https://github.com/ntc-chip-revived/CHIP-dt-overlays.git
mv CHIP-dt-overlays/firmware/ .
mv CHIP-dt-overlays/nextthingco/ .
rm -rf CHIP-dt-overlays
make clean all
nano nextthingco/dip-pocket-common.dtsi
编辑Pocketchip文件,只需替换下面的面板定义,fragment@5 声明与5英寸800x480屏幕兼容

__overlay__ {
        panel {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "allwinner,sun4i-a10-sub-evb-5-lcd";

make clean all
sudo cp firmware/early/*.dtbo /lib/firmware/nextthingco/chip/early/
sudo reboot
TIM图片20200415140014.jpg
TIM图片20200415140552.jpg