12 Replies Latest reply on May 27, 2015 5:39 AM by zhong812

    the source code of RiotBoard

    zhong812

      I've bought a riotboard which combined with imx6 solo.   Now I want the sourcecode of its uboot and linux, in case I want to unload some drivers to lower my power consumpution.  would u please give me a link to download or mail me the source?

        • Re: the source code of RiotBoard
          element14support

          Hello zhong812

          Here is the LINK to the download's we offer. I will move this over to the RIoTboard area as it is a better fit.

           

          Thank you,

           

          Jamie

          1 of 1 people found this helpful
          • Re: the source code of RiotBoard
            clem57

            plz download user manual here

             

            user manual comes with build instructions and other details for getting started.

            use links below at linux terminal to pull toolchain,uboot and kernel from our repository.

             

              git clone git://github.com/embest-tech/fsl-linaro-toolchain.git

              git clone git://github.com/embest-tech/u-boot-imx.git -b embest_imx_3.0.35_4.0.0

              git clone git://github.com/embest-tech/linux-imx.git -b embest_imx_3.0.35_4.0.0

             

            let us know if u have challenges in build.

            Clem

            1 of 1 people found this helpful
              • Re: the source code of RiotBoard
                zhong812

                I use the link below to download the sourcecode and compile:

                git clone git://github.com/embest-tech/fsl-linaro-toolchain.git

                  git clone git://github.com/embest-tech/u-boot-imx.git -b embest_imx_3.0.35_4.0.0

                  git clone git://github.com/embest-tech/linux-imx.git -b embest_imx_3.0.35_4.0.0

                The system told me that they can't find distclean when i compiled uboot.

                then I change the toolchain to another one which freescale gives to me which help me to access the compile.

                when i start the kernel there comes new  problems below:

                 

                the following was the serial port print:

                 

                Unable to handle kernel NULL pointer dereference at virtual address 00000001

                pgd = 80004000

                [00000001] *pgd=00000000

                Internal error: Oops: 5 [#1] PREEMPT SMP

                Modules linked in:

                CPU: 0    Not tainted  (3.0.35-02887-g731b440-dirty #7)

                PC is at kmem_cache_alloc+0xa4/0x108

                LR is at con_insert_unipair+0xb8/0x104

                pc : [<800f325c>]    lr : [<802897a0>]    psr: 60000093

                sp : bff83ef0  ip : bff82000  fp : 00000001

                r10: 00000000  r9 : 0bfcd000  r8 : 20000013

                r7 : 000000d0  r6 : bfff9300  r5 : 00000001  r4 : 80ab9cc0

                r3 : 8003e5a0  r2 : 80ab9cc0  r1 : 000024a8  r0 : 00000001

                Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

                Control: 10c53c7d  Table: 1000404a  DAC: 00000015

                Process swapper (pid: 1, stack limit = 0xbff822f0)

                Stack: (0xbff83ef0 to 0xbff84000)

                3ee0:                                    00002665 bfe15d64 bff6f900 00000003

                3f00: 80ae5688 80ae5686 00000003 802897a0 00000000 00000001 bff6f900 00000003

                3f20: 80ae5688 8028a3d0 00000000 80ae58e3 bfff0000 80b2f544 00000136 00000001

                3f40: 00000014 80b2f768 00000001 00000002 00000004 00000000 800224cc 800219fc

                3f60: 00000000 80b2f644 00000001 80021efc 80a18520 00000000 80b2f140 00000000

                3f80: 80043b04 00000013 00000000 00000000 00000000 80021350 809e7f90 00000000

                3fa0: 80b14100 80b14100 bff82030 8003d5c0 000001df 00000013 00000000 00000000

                3fc0: 00000039 00000000 00000270 8002fdf4 80030248 80043b04 00000013 00000000

                3fe0: 00000000 00000000 00000000 80008984 00000000 80043b04 09219820 90191c5a

                [<800f325c>] (kmem_cache_alloc+0xa4/0x108) from [<802897a0>] (con_insert_unipair+0xb8/0x104)

                [<802897a0>] (con_insert_unipair+0xb8/0x104) from [<8028a3d0>] (con_set_default_unimap+0xe8/0x178)

                [<8028a3d0>] (con_set_default_unimap+0xe8/0x178) from [<800219fc>] (console_map_init+0x44/0x50)

                [<800219fc>] (console_map_init+0x44/0x50) from [<80021efc>] (vty_init+0x18c/0x19c)

                [<80021efc>] (vty_init+0x18c/0x19c) from [<80021350>] (tty_init+0x12c/0x144)

                [<80021350>] (tty_init+0x12c/0x144) from [<8003d5c0>] (do_one_initcall+0x114/0x16c)

                [<8003d5c0>] (do_one_initcall+0x114/0x16c) from [<80008984>] (kernel_init+0xc0/0x144)

                [<80008984>] (kernel_init+0xc0/0x144) from [<80043b04>] (kernel_thread_exit+0x0/0x8)

                Code: 1afffff3 e596a014 e2811004 e3a00001 (e795a00a)

                ---[ end trace da227214a82491b7 ]---

                Kernel panic - not syncing: Attempted to kill init!

                [<80049978>] (unwind_backtrace+0x0/0xec) from [<80521d38>] (panic+0x80/0x194)

                [<80521d38>] (panic+0x80/0x194) from [<8007c090>] (complete_and_exit+0x0/0x1c)

                [<8007c090>] (complete_and_exit+0x0/0x1c) from [<00000001>] (0x1)

                 

                would u give me some suggestions?

                 

                for more tests i find:

                linux-imx/arch/arm/mm/fault.c  :

                do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)

                {

                  struct task_struct *tsk;

                  struct mm_struct *mm;

                  int fault, sig, code;

                  if (notify_page_fault(regs, fsr))

                  return 0;

                  tsk = current;

                  mm  = tsk->mm;

                 

                in this part mm is null so system print:

                Unable to handle kernel NULL pointer dereference at virtual address 00000001

                 

                what could i do?

                • Re: the source code of RiotBoard
                  zhong812

                  when I use the source u give to compile uboot

                  i entered :  make distclean

                  it says:

                  could not find distclean.

                    • Re: the source code of RiotBoard
                      radiatortwo

                      "could not find distclean" means the code doesn´t have a make option for distclean.

                      You can try "make clean" instead.

                      But if you just checked the code out from github you normally don´t need to execute distclean.


                      I have some blog posts on how to compile u-boot with debian wheezy.

                      Also on how to compile the kernel. THe kernel is mainline in those descriptions. But it should also work with the code from embest.
                      Mainline has no GPU/VPU drivers integrated.

                       

                      You find that blogs here.

                      Linux on the RIoTBoard Part 1: U-Boot

                        • Re: the source code of RiotBoard
                          zhong812

                          I use the serial port to print some logs and find problems bellow:

                          when it excute linux-imx/arch/arm/kernel/process.c

                          it has a funtion:

                          void cpu_idle(void)

                          when the program entered this function, there is a while(1)

                          after some loops when it entered the function: "schedule();"  again.

                          Then it never return back and it will print the logs I give bellow:

                          ``````````````````````````````

                          mc_pfuze 1-0008: recv failed!:-5,e8

                          mc_pfuze: probe of 1-0008 failed with error -1

                          imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

                          mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed

                          mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a

                          MIPI CSI2 driver module loaded

                          Advanced Linux Sound Architecture Driver Version 1.0.24.

                          Bluetooth: Core ver 2.16

                          NET: Registered protocol family 31

                          Bluetooth: HCI device and connection manager initialized

                          Bluetooth: HCI socket layer initialized

                          Bluetooth: L2CAP socket layer initialized

                          Bluetooth: SCO socket layer initialized

                          i2c-core: driver [max17135] using legacy suspend method

                          i2c-core: driver [max17135] using legacy resume method

                          Switching to clocksource mxc_timer1

                          cfg80211: Calling CRDA to update world regulatory domain

                          Unable to handle kernel paging request at virtual address e1a01000

                          pgd = 80004000

                          [e1a01000] *pgd=00000000

                          Internal error: Oops: 5 [#1] PREEMPT SMP

                          Modules linked in:

                          CPU: 0    Not tainted  (3.0.35-02887-g731b440-dirty #38)

                          PC is at kmem_cache_alloc+0xa4/0x108

                          LR is at con_insert_unipair+0x74/0x104

                          ``````````

                           

                          How can I fixed this problem?