User Tools

Site Tools


picoPrint Software Documentation

Install Gentoo Linux on Cubieboard2

Install & bootstrap crossdev

$ emerge -av crossdev

Create a stable armv7a-hardfloat-linux-gnueabi tool chain for the Cubieboard2:

$ crossdev -S -t armv7a-hardfloat-linux-gnueabi

Install and compile u-boot

$ mkdir gentoo-cb2
$ cd gentoo-cb2
$ git clone https://github.com/linux-sunxi/u-boot-sunxi.git
$ cd u-boot-sunxi

Start clean and configure Cubieboard2 default u-boot parameters

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make distclean
$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make Cubieboard2_config

should return

Configuring for Cubieboard2 - Board: sun7i, Options: CUBIEBOARD2,SPL,SUNXI_GMAC,STATUSLED=244,STATUSLED1=245,FAST_MBUS

Build u-boot

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make -j4

should return something like

tools/mkimage -A arm -T firmware -C none \
        -O u-boot -a 0x4a000000 \
        -e 0 \
        -n  "U-Boot 2014.01-rc1-09153-gc75ea90 for sunxi board" \
        -d u-boot.bin u-boot.img
Image Name:   U-Boot 2014.01-rc1-09153-gc75ea9
Created:      Wed Jan  8 10:47:48 2014
Image Type:   ARM U-Boot Firmware (uncompressed)
Data Size:    227820 Bytes = 222.48 kB = 0.22 MB
Load Address: 4a000000
Entry Point:  00000000
tr "\000" "\377" < /dev/zero | dd ibs=1 count=32768 \
                of=spl/sunxi-spl-pad.bin 2>/dev/null

and produce the following files we will need:

-rw-r--r-- 227884 Jan  8 10:47 ./gentoo-cb2/u-boot-sunxi/u-boot.img
-rwxr-xr-x 17644  Jan  8 10:47 ./gentoo-cb2/u-boot-sunxi/spl/u-boot-spl.bin

Install and compile kernel

Get the sources

$ cd ..
$ git clone https://github.com/linux-sunxi/linux-sunxi.git
$ cd linux-sunxi
$ git checkout sunxi-3.4

Prepare the kernel

Use default config to get something to start with

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ARCH=arm make sun7i_defconfig

Tweak your kernel according to your wishes

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ARCH=arm make menuconfig

The kernel seems to fail to compile when the following settings are enabled:

  • Networking support → [*] RF Switch subsystem support

Solution: Disable RF Switch subsystem support (not needed on CB2 anyways).

  • Power Management options → [*] Run-time PM core functionality

Solution: Disable Run-time PM core functionality or apply the following patch.

--- arch/arm/mach-sun7i/pm/standby/mem_printk.c 2014-01-08 12:42:26.641644236 +0100
+++ /tmp/mem_printk.c   2014-01-08 12:42:18.706835502 +0100
@@ -165,7 +165,7 @@
        int  negative = 0;                //defualt is positive value
        int  i;
        int  j;
-       char digit_string[] = "0123456789ABCDEF";       
+       char * digit_string = "0123456789ABCDEF";       
        
        if(value == 0)
        {
@@ -211,7 +211,7 @@
        char stack[16];
        int  i;
        int  j;
-       char digit_string[] = "0123456789ABCDEF";       
+       char * digit_string = "0123456789ABCDEF";       
        
        if(value == 0)
        {
@@ -366,7 +366,7 @@
 {
        //fill with space ' ' when align request,
        //the max align length is 16 byte.
-       char fill_ch[] = "                ";
+       char * fill_ch = "                ";
        if (len < align)
        {
                //fill at right

Compile kernel

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ARCH=arm make -j4 uImage
Image Name:   Linux-3.4.75-00001-g9cfbbed-dirt
Created:      Wed Jan  8 12:55:16 2014
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4385184 Bytes = 4282.41 kB = 4.18 MB
Load Address: 40008000
Entry Point:  40008000
  Image arch/arm/boot/uImage is ready

Compile modules

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ARCH=arm make -j4 modules

Install and compile sunxi-tools

$ cd ..
$ git clone https://github.com/linux-sunxi/sunxi-tools.git
$ cd sunxi-tools
$ make bin2fex fex2bin
$ git clone https://github.com/linux-sunxi/sunxi-boards.git
emerge -pv nginx pycurl mjpg-streamer

GPIOs

nginx config

worker_processes  1;

events 
{
    worker_connections  1024;
}

http 
{
    include            mime.types;
    default_type       application/octet-stream;
    sendfile           on;
    keepalive_timeout  65;

    map                 $http_upgrade $connection_upgrade 
    {
        default         upgrade;
        ''              close;
    }

    upstream            "octoprint" 
    {
        server          127.0.0.1:5000;
    }

    upstream            "framecam" 
    {
        server          127.0.0.1:8080;
    }

    server 
    {
        listen       80;
        server_name  feliks;

        client_max_body_size 50M;

        location /framecam/
        {   
            proxy_pass http://framecam/;
            proxy_buffering off;
        }
        
        
        location /sockjs
        {  
            proxy_pass http://octoprint;   # NO trailing slash 
            proxy_buffering off;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection $connection_upgrade;

        }

        location / 
        {
          
            set $pp_d http://127.0.0.1:5000;
            if ( $args = 'action=stream' ) {
                set $pp_d http://127.0.0.1:8080/$is_args$args;
            }
            
            if ( $args = 'action=snapshot' ) {
                set $pp_d http://127.0.0.1:8080/$is_args$args;
            }

            proxy_pass $pp_d;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host:$server_port;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header X-Forwarded-Port $server_port;
            proxy_set_header X-Request-Start $msec; 
          
        }

        # redirect server error pages to the static page /50x.html
        error_page   500 502 503 504  /50x.html;
        location = /50x.html 
        {
            root   html;
        }
    }
}

Discussion

geometry dash, 2024/05/29 01:45

Calling all gamers! If you've ever dreamed of a game that rewards precision and rhythm, then geometry dash is your dream come true. It's a platformer that combines the elegance of geometry with the thrill of a dance, and it's ready to welcome you into its world.

Karehristie, 2024/06/19 10:21

Papa's Games also offers valuable lessons in time management, organization and customer service. Players can hone their multitasking skills and learn valuable strategies for success in both the virtual and real worlds.

leona, 2024/06/24 08:19

Papa's Scooperia - a fun and exciting ice cream restaurant management game that offers the experience of running a family ice cream business.

Felton Rolfson, 2024/07/08 04:15

Thanks for this insightful guide on PicoPrint software! It's great to find such detailed explanations on optimizing printing processes. I particularly appreciated the section on compatibility with different devices, crucial for my work. By the way, if you enjoy mastering complex strategies like those in PicoPrint, you might also find https://playpokerogue.com, an innovative online game, quite captivating!

Fesicop1, 2024/07/18 04:26

You've found Papa Louie's virtual residence. You can play all of the greatest Papa Louie games online for free right here. What therefore is the essence of a Papa Louie game? Fantastic challenge, questionable corporate practices, and delicious cuisine! The bulk of https://papasgames.pro papa's games involve running restaurants and the kitchen. While tough, working in Papa's kitchen is exciting.

markangelo, 2024/07/24 09:11

I'm excited to see this project come together! It reminds me of how random video chat can connect people unexpectedly—looking forward to the progress!

Chris Crist, 2024/07/25 04:01

This article on PicoPrint software is a treasure trove of information! If you’re into tech and also like to have some fun, you should check out monkey mart

. It’s a fantastic way to take a break from techie stuff and dive into a playful virtual shopping experience. Perfect balance of work and play!

https://monkeymart.lol

Skribbl io, 2024/07/30 10:32

I've read a number of other blogs, but yours has convinced me; I hope you'll continue to provide more wonderful blogs in the future. GAme Fnaf world for everyone

GuauMod.io, 2024/08/08 07:52

Oh man, this is like discovering a hidden cheat code in real life! It’s a DIYer’s dream. Simple, yet robust, like finding that perfect power-up right when you need it. This tool lets you tweak and create with precision, turning your ideas into reality. Who wouldn't want that kind of creative control? If you want to live a virtual life like that, download role-playing games and live the most freely, download role-playing games right on the website https://guaumod.io/

Smash Karts, 2024/08/14 07:14

Enter the action-packed universe of Smash Karts , a free IO multiplayer kart battle arena game. With its fast-paced racing and explosive battles, players can drive their karts through 3D environments, picking up weapons and power-ups to defeat opponents. Consistent play leads to leveling up and unlocking new characters and exciting prizes.

fiona, 2024/08/28 02:47

The charm of Doodle Jump lies in its simplicity. The goal is clear, and the gameplay is addictive. Every time I think I’ve mastered it, a new challenge arises, keeping me hooked for hours!

NadiaMoore, 2024/09/09 07:34

To effectively utilize the picoPrint software, ensure you have Gentoo Linux installed on your Cubieboard2. The installation process involves bootstrapping crossdev for cross-compilation. While you're diving into software setup, consider taking a break to enjoy slope game for a fun rhythm challenge to refresh your mind!

Sheila C Merchant, 2024/09/09 22:48

The picoPrint Software Documentation detail you shared for us here is the best, and it provides us the right solutions. While using the services at the terracotta roof restoration I saw a lot of people are happy and love to use these services and recommend it to others.

dordle12, 2024/09/20 08:45

If you're looking for a new game to help you improve your vocabulary while having fun, dordle could be the perfect addition to your gaming collection.

Craig S McGowan, 2024/09/23 03:08

Thanks for sharing the code with the details. These details are useful for learning, and we can use these details in our code. By using roof repairs we can learn more and more ideas to resolve these roof problems.

wang tao, 2024/10/05 14:56

<a href=“https://perchanceaistory.com/” title=“Perchance AI Story” >Perchance AI Story</a> Perchance AI Story is a website that supports multiple languages ​​and can continue to write storiesUnderlined Text

wang tao, 2024/10/05 14:56

https://selcuksports.uk/ selçukspor HD live online free watch

wang tao, 2024/10/05 14:56

https://sprunki.net/ The combination of different music is so magical that I can't stop listening to it

wang tao, 2024/10/07 03:30

https://incredibox-mustard.org/ Explore Colorbox Mustard, a fan-made mod inspired by Incredibox. Create unique music and learn about this creative extension of the popular music creation game.

wang tao, 2024/10/10 08:48

https://aisignaturegenerators.com/ The best AI Signature Generator, with multiple artistic fonts, free to use online

wang tao, 2024/10/11 14:30

Hurricane Milton is approaching Florida, and a real-time map is available to track its path. This map provides key updates on wind speeds and projected landfall, helping residents stay informed and prepared as the storm develops. Stay safe!

wang tao, 2024/10/11 14:31

https://hurricane-milton.org/ Hurricane Milton is approaching Florida, and a real-time map is available to track its path. This map provides key updates on wind speeds and projected landfall, helping residents stay informed and prepared as the storm develops. Stay safe!

Karen, 2024/10/11 23:13

The picoPrint software documentation is the best for the users who are searching for the right ideas that are bringing solutions to us. When I get the additional hints I saw, people are finding the solutions that provide us what we need to know.

wang tao, 2024/10/12 13:30

https://aibabygenerator.org/ AI Baby Generator lets you have fun by creating a virtual baby based on two photos. Just upload pictures, and the AI will predict what your future baby might look like. It's quick, easy, and super fun to see the results!

wang tao, 2024/10/13 03:14

https://sprunki.co/ sprunki.co is a Free, No Ads,No download and have ALL Incredibox Version and yet have ALL language Version in onepage, Hope you like this crazy music game

wang tao, 2024/10/13 10:34

https://pumpkinspices.xyz/ Learn how to make pumpkin spice and latte according to the recipe, try various recipes, match with various foods, and love life

wang tao, 2024/10/14 03:55

https://sprunkiincrediboxes.com/ Sprunki Incredibox, a fan-made mod inspired by the original Incredibox game. https://sprunkiincrediboxes.com/ You can play it online for free and includes all relevant versions

wang tao, 2024/10/17 03:30

https://sampleballot.uk/ This Sample Ballot Lookup Tool shows you candidates, ballot measures and constitutional amendments for upcoming federal and state, and some local elections.

Michaeambert, 2024/10/23 14:39

Eggy car is a free-to-play online game where you take control of a car made entirely of eggs! Navigate treacherous courses, collect power-ups, and avoid obstacles in this wacky and fun drivinhttps://eggycar.onlineg experience.

pio kijio, 2024/10/28 02:41

Gaming can inspire creativity, especially in https://bitlife2.org bitlife games that allow customization or building. It encourages me to think outside the box and try new things.

pio kijio, 2024/10/28 02:43

In many games, you have to develop https://bitlife2.org strategies and learn from your mistakes. This has made me more adaptable and persistent in facing challenges.

Nelson, 2024/11/07 03:54

I came across this theme and loved it. Fnaf 1

Lucky, 2024/11/08 09:52

Your work is excellent, and I appreciate it. I look forward to more interesting blogs. Thank you for sharing this valuable knowledge with us. Head Soccer

Jack97, 2024/11/14 03:10

https://fnf-game.io/ not only requires skillful hand technique but also requires dexterity. Be ready to show your skills through the notes in each mod.

Omegle, 2024/11/21 04:26

To create a stable armv7a-hardfloat-linux-gnueabi toolchain for the Cubieboard2, first ensure you have the necessary dependencies and libraries. Use a reliable source like GitHub for the toolchain binaries. For debugging, consider testing configurations on platforms like Omegle, where you can seek advice from tech enthusiasts. This approach enhances your chances of success while building a robust environment for your projects.

https://omegleweb.io/

friday night funkin, 2024/11/21 08:00

Papa's Games teach essential skills like time management and customer service, enhancing multitasking abilities. Just like in Friday Night Funkin, where timing is crucial to win, these games prepare players for success in both virtual and real-life challenges.

slope unblocked, 2024/11/21 08:02

To build a stable armv7a-hardfloat-linux-gnueabi toolchain for Cubieboard2, gather dependencies and use GitHub for binaries. For debugging, leverage platforms like Omegle or Slope Unblocked for tech tips, boosting your project success effectively. Stay connected with the community for best practices!

geometry dash, 2024/11/21 08:04

As Hurricane Milton approaches Florida, residents can track its path in real-time, much like navigating through levels in Geometry Dash. Stay informed about wind speeds and projected landfall to ensure safety. Prepare for the storm and keep your family secure!

polytrack, 2024/12/03 07:12

https://poly-track.org/ Play PolyTrack, the ultimate low-poly racing game featuring loops, jumps, and high-speed action. Create, share, and race on custom tracks. Join the global PolyTrack community today!

miajackson1117, 2024/12/13 04:20

Viral Potential on Social Media love tester simple concept and shareable nature make it ideal for social media content. Players post their quirky, surprising, or 'fated' results, encouraging others to try it too.

Enter your comment. Wiki syntax is allowed:
E H X G F