Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Custom ROM creation mentoring

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #76
    Originally posted by JonChance View Post
    found something about implementing an init.d using the post-boot.sh script.

    in your post_boot.sh script insert the following line :
    /system/etc/init.d/*
    The original thread is located at http://forum.xda-developers.com/show....php?t=1710980

    From there you can add and remove scripts that will run at boot time.

    As far as compiling a kernel is reasonably easy: most of the time it is just setting up your cross compiler that you want to have the code compile to and typing in make and let the computer do the rest. Adding in drivers and modules also very easy. the tough part is to make mods to the source and with out any new bugs lol.
    right?! Ok, I'll try that-thanks for the tip! As you can see, the guys are keeping me quite busy with integrating all the compatibility changes into the AOKP ROM at the moment, hehe.
    https://public.bay.livefilestore.com...ion.png?psid=1

    Comment


      #77
      Originally posted by JonChance View Post
      found something about implementing an init.d using the post-boot.sh script.

      in your post_boot.sh script insert the following line :
      /system/etc/init.d/*
      The original thread is located at http://forum.xda-developers.com/show....php?t=1710980

      From there you can add and remove scripts that will run at boot time.

      As far as compiling a kernel is reasonably easy: most of the time it is just setting up your cross compiler that you want to have the code compile to and typing in make and let the computer do the rest. Adding in drivers and modules also very easy. the tough part is to make mods to the source and with out any new bugs lol.
      Hmm...the only .sh files I find are preinstall.sh in the system/bin folder and usb_modeswitch.sh and init.goldfish.sh in system/etc.. Would this be the equivalent I wonder...?
      https://public.bay.livefilestore.com...ion.png?psid=1

      Comment


        #78
        Re: Custom ROM creation mentoring

        For init.d I integrate busybox then add a call run-parts to init.rc
        900Supersport

        900supersports FreakTab rkROMkitchen

        900supersports guide to working-RK-ROMs

        Under Construction 900supersports guide to working MediaTek ROMS

        Struggling for time at the moment, but will try and drop by when I can.

        If you would like to support my ROM development then please visit my Google site donate page where you can make a paypal donation

        freaktab developer

        Proof that you're never to old to learn. Sometimes too old to remember though.

        Comment


          #79
          Originally posted by 900supersport View Post
          For init.d I integrate busybox then add a call run-parts to init.rc
          English man! I'm a noob at this remember?!
          https://public.bay.livefilestore.com...ion.png?psid=1

          Comment


            #80
            Re: Custom ROM creation mentoring

            Yeah but learning is such fun. Search for busy box on google play you should be able to find an installer. Look at the links created and see if you can then integrate.
            900Supersport

            900supersports FreakTab rkROMkitchen

            900supersports guide to working-RK-ROMs

            Under Construction 900supersports guide to working MediaTek ROMS

            Struggling for time at the moment, but will try and drop by when I can.

            If you would like to support my ROM development then please visit my Google site donate page where you can make a paypal donation

            freaktab developer

            Proof that you're never to old to learn. Sometimes too old to remember though.

            Comment


              #81
              Originally posted by 900supersport View Post
              Yeah but learning is such fun. Search for busy box on google play you should be able to find an installer. Look at the links created and see if you can then integrate.
              You're a cruel man, you know LOL!
              https://public.bay.livefilestore.com...ion.png?psid=1

              Comment


                #82
                found 2 threads for adding init.d via a script http://forum.xda-developers.com/show....php?t=1933849 http://forum.xda-developers.com/show....php?t=1772616

                Comment


                  #83
                  Re: Custom ROM creation mentoring

                  So first step is busybox. :-)
                  900Supersport

                  900supersports FreakTab rkROMkitchen

                  900supersports guide to working-RK-ROMs

                  Under Construction 900supersports guide to working MediaTek ROMS

                  Struggling for time at the moment, but will try and drop by when I can.

                  If you would like to support my ROM development then please visit my Google site donate page where you can make a paypal donation

                  freaktab developer

                  Proof that you're never to old to learn. Sometimes too old to remember though.

                  Comment


                    #84
                    So I have BusyBox installed but on an unrelated note, I don't believe this! my 701C shows I have 321MB of total RAM, NOT 512MB! Does this sound right to everyone? I'm not talking about USED RAM, I'm talking about TOTAL INSTALLED.....
                    https://public.bay.livefilestore.com...ion.png?psid=1

                    Comment


                      #85
                      Eletrik : 900supersport beat me to it. Add your call to init.d/* in init.rc. The most logical place to put it would be at the end of the file. I would highly recommend understanding what is happening and the sequence of events that is happening in the init.rc file before making any changes. once you understand the flow and the sequence you can go ahead and implement a full blown init.d/.

                      The way that it appears init.rc is the entire init.d directory in a single file. you can break down the init.rc into smaller pieces and individual files depending on what you wish to accomplish.

                      The key is understanding what and why you are doing what you are doing.

                      sorry for the confusion but i hope it helps in the long run.
                      It is by caffeine alone I set my mind in motion,
                      It is by the beans of Java that thoughts acquire speed,
                      The hands acquire shaking, the shaking becomes a warning,
                      It is by caffeine alone I set my mind in motion.

                      Comment


                        #86
                        Originally posted by JonChance View Post
                        Eletrik : 900supersport beat me to it. Add your call to init.d/* in init.rc. The most logical place to put it would be at the end of the file. I would highly recommend understanding what is happening and the sequence of events that is happening in the init.rc file before making any changes. once you understand the flow and the sequence you can go ahead and implement a full blown init.d/.

                        The way that it appears init.rc is the entire init.d directory in a single file. you can break down the init.rc into smaller pieces and individual files depending on what you wish to accomplish.

                        The key is understanding what and why you are doing what you are doing.

                        sorry for the confusion but i hope it helps in the long run.
                        No apologies necessary-I appreciate the help!

                        With that said, I *think* I understand and will attempt it. I'll try to thoroughly learn about init.rc and init.d before posting questions, but I can't guarantee there won't be a bonehead question or two thrown in there
                        https://public.bay.livefilestore.com...ion.png?psid=1

                        Comment


                          #87
                          Originally posted by elektrik View Post
                          No apologies necessary-I appreciate the help!

                          With that said, I *think* I understand and will attempt it. I'll try to thoroughly learn about init.rc and init.d before posting questions, but I can't guarantee there won't be a bonehead question or two thrown in there
                          To quote one of my professors at Berkeley :

                          The only stupid questions are :

                          1) The one's you don't ask.
                          2) The one's that you already know the answers to.

                          I am still in the process of learning more about this myself. I am taking a little difference approach. I want to create a bare bones rom from scratch using the AOSP source code and the latest Linux kernels.
                          It is by caffeine alone I set my mind in motion,
                          It is by the beans of Java that thoughts acquire speed,
                          The hands acquire shaking, the shaking becomes a warning,
                          It is by caffeine alone I set my mind in motion.

                          Comment


                            #88
                            Originally posted by JonChance View Post
                            To quote one of my professors at Berkeley :

                            The only stupid questions are :

                            1) The one's you don't ask.
                            2) The one's that you already know the answers to.

                            I am still in the process of learning more about this myself. I am taking a little difference approach. I want to create a bare bones rom from scratch using the AOSP source code and the latest Linux kernels.
                            Haha. cool deal.
                            https://public.bay.livefilestore.com...ion.png?psid=1

                            Comment


                              #89
                              Sweet! I was finally able to get init.d support on the stock ROM using this post http://forum.xda-developers.com/show....php?t=1933849 Thanks jtintle!

                              Now one of the final things I'm going to do is try to get this script http://www.freaktab.com/showthread.php?1050-Reboot-App working the same way as the kkromkit does (it doesn't) in regards to giving us the option to rebooting to the CWM recovery image I have installed by default...

                              <fingers crossed>.

                              This is the last piece of the puzzle for me-after this is done, I think it's safe to say I better start renaming my 'ROMs' to something other than modifed 'stock' hehe.
                              https://public.bay.livefilestore.com...ion.png?psid=1

                              Comment


                                #90
                                Originally posted by elektrik View Post
                                Sweet! I was finally able to get init.d support on the stock ROM using this post http://forum.xda-developers.com/show....php?t=1933849 Thanks jtintle! Now one of the final things I'm going to do is try to get this script http://www.freaktab.com/showthread.php?1050-Reboot-App working the same way as the kkromkit does (it doesn't) in regards to giving us the option to rebooting to the CWM recovery image I have installed by default... . This is the last piece of the puzzle for me-after this is done, I think it's safe to say I better start renaming my 'ROMs' to something other than modifed 'stock' hehe.
                                Great to hear, Now for your rom name may I suggest Elektricity Keep up the good work

                                Comment

                                Working...
                                X