Hi

Am 16.10.2015 um 12:18 schrieb Chris Mills:
> Hi Thomas,
>
> We don’t generally include Linux how to type stuff on MDN as it is out of 
> scope, but I think this would be a really useful thing to have in the Firefox 
> OS section of MDN. FxOS is a difficult hybrid in terms of subject matter, 
> because it is largely a web tech thing, but the lower levels and build steps 
> need Linux/build system knowledge.
>
> I’m a web guy in terms of knowledge background, but the build steps, etc. 
> tend to confuse me a lot as it is just not my area of expertise. This is why 
> I pointed Zoltan at the list. I’m sure others are in the same position.

Sure. I was thinking about people who have their Linux installed and
know how to use a terminal. We're not a Linux distribution, but we
should offer some help when it's relevant for Firefox OS. I guess we're
on the same page.

>
> So I’m happy to help put this together, but I’d need some help brainstorming 
> what to include in it.

Great! I could think of the following categories

  - prerequisites (involved tools, etc)
  - supported devices
  - fetching repositories
  - building
  - flashing
  - bug reporting
  - mindset (aka: "How do I help myself in the most efficient way.")

Most of this is documented somewhere on MDN or elsewhere on the web,
pointers to existing documents should be fine. Zoltan ran into a common
bug in the manifest file. For such bugs, we could probably include
explanations in the FAQ. It also seems like he couldn't get the quick
fix to work. A step-by-step example might be helpful.

I've never written an FAQ before, but if you put something together, I'd
help with filling in the details.


>
> Zoltan, I’d be happy to hear your ideas too, in terms of what help you’d find 
> mose useful in this area.
>
> All the best,
>
> Chris
>
>> On 16 Oct 2015, at 10:58, Thomas Zimmermann <[email protected]> wrote:
>>
>> Chris,
>>
>> these questions are in the 'How do I use my Linux?' and 'How do I become
>> a good developer?' category. They seem to come up every now and then. Do
>> we have an FAQ for complete newbies? If not, could we create one?
>>
>> Best regards
>> Thomas
>>
>> Am 16.10.2015 um 11:26 schrieb Antal Zoltán:
>>> Dear Thomas and Chris!
>>>
>>> I tried everything. It is suceed set the repo on my computer, and edit
>>> the galaxy-manifest file basen on yourguidelines. Unfortunately the
>>> original problem
>>> has not disappeared. I got the next error:
>>>
>>> error: Cannot fetch platform/prebuilt), 3.61 MiB | 923.00 KiB/s
>>> error: Cannot fetch
>>> platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8
>>>
>>> Why do not make MOZILLA an image for this device?
>>> Why do not show MOZILLA a correct way to build an image, if the
>>> galaxy-nexus device is supported?
>>> I see, there are very many problem with the building, but there is no
>>> solution.
>>> Why do not help nobody from the MOZILLA?
>>> Do not they want to, that many people use this system?
>>>
>>> If I do everything the way it is described in the mozilla page, why do
>>> it not work???
>>> Who is responsible???
>>>
>>> Who can help???
>>> Where to turn???
>>>
>>> Please give me a contact, who can help me. I would like to use my
>>> phone with FirefoxOS.
>>>
>>> Best regards,
>>> ZOltan
>>>
>>> 2015-10-14 14:24 GMT+02:00 Antal Zoltán <[email protected]
>>> <mailto:[email protected]>>:
>>>
>>>    Thank you for your answer Thomas.
>>>
>>>    Best regards
>>>    Zoltan
>>>
>>>    2015-10-14 13:29 GMT+02:00 Thomas Zimmermann
>>>    <[email protected] <mailto:[email protected]>>:
>>>
>>>        Hi!
>>>
>>>        I can only offer you some help to get started, but I cannot
>>>        teach you
>>>        how to use your tools, sorry.
>>>
>>>        Attached is a modified 'galaxy-nexus.xml' that retrieves the
>>>        correct
>>>        repositories. If you do step 1 and copy the resulting file
>>>        into the
>>>        resulting directory, then do steps 3 and 4, you should be able to
>>>        complete. I tried this locally, but the build failed with an
>>>        error. I
>>>        guess this hasn't been updated in a while.
>>>
>>>        Best regards
>>>        Thomas
>>>
>>>        Am 14.10.2015 um 07:57 schrieb Antal Zoltán:
>>>> Hi Thomas,
>>>>
>>>> Thank you very much again for your help. I tried, what you
>>>        wrote, but
>>>> i failed unfortunately. I have the original galaxy-nexus.xml
>>>        manifest
>>>> file from the mozilla git repo. I tried edit that. I added the
>>>> "<remote name="caf" fetch="git://codeaurora.org/
>>>        <http://codeaurora.org/>
>>>> <http://codeaurora.org/>"/>" line to the xml. Unfortunately
>>>        i did not
>>>> know where i have to put the 'repository="caf"' line.
>>>>
>>>> Then i tried this edited XML save to to my filesystem. I
>>>        made a folder
>>>> (galaxy-nexus) my root directory and put the edited
>>>        galaxy-nexus.xml
>>>> manifest file in this folder. I write in my terminal: "git
>>>        commit -a",
>>>> but unfortunately i got the nest message:
>>>>
>>>> COMMAND: git commit -a
>>>> ANSWER: fatal: Not a git repository (or any parent up to
>>>        mount point
>>>> /home)
>>>> Stopping at filesystem boundary
>>>        (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
>>>> So i go to the folder where i cloned the original GIT
>>>> (home/myname/firefoxOS/B2G). Here I made a 'galaxy-nexus'
>>>        folder and
>>>> put in the edited manifest file and write to the terminal:
>>>>
>>>> COMMAND: git commit -a
>>>>
>>>> ANSWER:
>>>>
>>>> /# Please enter the commit message for your changes. Lines
>>>        starting
>>>> # with '#' will be ignored, and an empty message aborts the commit.
>>>> # On branch master
>>>> # Your branch is up-to-date with 'origin/master'.
>>>> #
>>>> # Changes to be committed:
>>>> #       modified:   config.sh
>>>> #       new file:   galaxy-nexus.xml
>>>> #
>>>> # Untracked files:
>>>> #       .tmp-config
>>>> #       b2g-manifest/
>>>> #       config.sh~
>>>> #/
>>>>
>>>> I saved this (CTRL+O) and exit (CTRL+X), and i tried to edit the
>>>> 'config.sh'. I changed the
>>>>
>>>        'GITREPO=${GITREPO:-"git://github.com/mozilla-b2g/b2g-manifest
>>>        <http://github.com/mozilla-b2g/b2g-manifest>
>>>> <http://github.com/mozilla-b2g/b2g-manifest>"}' line by the
>>>> 'GITREPO=${GITREPO:-"file:///home/myname/firefoxOS/B2G"}'.
>>>>
>>>> Then I write in the terminal
>>>>
>>>> COMMAND: ./config.sh galaxy-nexus
>>>>
>>>> Unfortunately I got the next message.
>>>>
>>>> ANSWER:
>>>> fatal: '/home/myname/firefoxOS/B2G' does not appear to be a
>>>        git repository
>>>> fatal: Could not read from remote repository.
>>>> Please make sure you have the correct access rights
>>>> and the repository exists.
>>>>
>>>> Help me please. Could you write me please step by step what
>>>        do i have
>>>> to do? I attached a editless manifest file.
>>>>
>>>> Best regards
>>>> ZOltan
>>>>
>>>>
>>>>
>>>> 2015-10-13 14:55 GMT+02:00 Thomas Zimmermann
>>>        <[email protected] <mailto:[email protected]>
>>>> <mailto:[email protected]
>>>        <mailto:[email protected]>>>:
>>>>    Hi
>>>>
>>>>    this is a bug in the Galaxy Nexus' manifest file. [1] It
>>>        pulls repos
>>>>    from Linaro, which apparently doesn't have
>>>        aosp-new/master. I know how
>>>>    to fix it, but I don't know if the result would still build.
>>>>
>>>>    Zoltan, do you know how to modify a manifest file? The
>>>        rough steps are
>>>>      1) 'git clone' the manifest from the repo at [1],
>>>>      2) modify galaxy-nexus.xml in the following way:
>>>>
>>>>        * add the line
>>>>
>>>>            <remote name="caf" fetch="git://codeaurora.org/
>>>        <http://codeaurora.org/>
>>>>    <http://codeaurora.org/>"/>
>>>>
>>>>          next to the other repo statements
>>>>
>>>>        * add
>>>>
>>>>            repository="caf"
>>>>
>>>>        to the XML tag that clones 'prebuilts/gcc/..."
>>>>
>>>>      3) in the Linux shell set the shell variable GITREPO
>>>        to the
>>>>    directory
>>>>    with you local modified manifest, and
>>>>
>>>>      4) run config.sh as before.
>>>>
>>>>    That should fix the bug of cloning the repo. I hope that the
>>>>    result builds.
>>>>
>>>>    If you succeed, we could add this change to our repository.
>>>>
>>>>    Best regards
>>>>    Thomas
>>>>
>>>>
>>>>    [1]
>>>>
>>>         
>>> https://github.com/mozilla-b2g/b2g-manifest/blob/master/galaxy-nexus.xml
>>>>    Am 13.10.2015 <tel:13.10.2015> <tel:13.10.2015 <tel:13.10.2015>>
>>>        um 14:36 schrieb Chris Mills:
>>>>> Hi there,
>>>>>
>>>>> I’m not sure what the problem is here, so I’ve
>>>        forwarded your
>>>>    query to
>>>>> the dev-fxos list, to see if anyone there can help.
>>>>>
>>>>> Hi FxOS folks - can you help Zoltan with their query
>>>        about building
>>>>> FxOS on their Galaxy Nexus device?
>>>>>
>>>>> Best,
>>>>>
>>>>> Chris
>>>>>
>>>>>> Begin forwarded message:
>>>>>>
>>>>>> *From: *Antal Zoltán <[email protected]
>>>        <mailto:[email protected]>
>>>>    <mailto:[email protected] <mailto:[email protected]>>
>>>        <mailto:[email protected] <mailto:[email protected]>
>>>>    <mailto:[email protected] <mailto:[email protected]>>>>
>>>>>> *Date: *12 October 2015 at 07:13:12 BST
>>>>>> *To: *[email protected] <mailto:[email protected]>
>>>        <mailto:[email protected] <mailto:[email protected]>>
>>>>    <mailto:[email protected] <mailto:[email protected]>
>>>        <mailto:[email protected] <mailto:[email protected]>>>
>>>>>> *Subject: **Building FirefoxOS for Galaxy Nexus*
>>>>>>
>>>>>> I ask your help. Galaxy Nexus (TIER 3) would like to
>>>        build Firefox
>>>>>> OS, but I always get stuck with the following error
>>>        (fresh Ubuntu
>>>>>> 14.04, Java 7):
>>>>>>
>>>>>> Fetching projects:  98% (85/86)  fatal: Couldn't find
>>>        remote ref
>>>>>> refs/heads/aosp-new/master
>>>>>> Unexpected end of command stream
>>>>>> error: Cannot fetch
>>>>>>
>>>        platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8
>>>>>> I followed all the steps that you wrote on the site,
>>>        but still
>>>>    I get
>>>>>> the same error. What could be the problem. Can you
>>>        help me please?
>>>>>> Best regards
>>>>>>
>>>>>> Zoltan Antal
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> dev-fxos mailing list
>>>>> [email protected]
>>>        <mailto:[email protected]>
>>>        <mailto:[email protected]
>>>        <mailto:[email protected]>>
>>>>> https://lists.mozilla.org/listinfo/dev-fxos

_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to